KiCad creates lock files when schematic and/or pcb is open, that should not be included in repos:
~*.kicad_pcb.lck
~*.kicad_sch.lck
These files are unfortunately not mentioned in the documentation, but are used on at least macos with KiCad v8.0.
https://www.kicad.org/