I use git to maintain all my kicad projects. Whenever I want to do a design change, I just make a new git branch and start making changes, and then later on merge it with the main.
The problem I faced is that when the merge happened, the .kicad_pcb file and the bak file were both changed in such a way that it could not be opened.
The error message read “Missing ( at line 8, in the .kicad_pcb file”.
I have two questions,
Do people use git to maintain kicad projects?
How do I merge branches locally using git on the current kicad project without corrupting the main files?
It was discussed here before several times.
KICAD files are not meant for GIT based version control, and you can’t easily and selectively merge changes between files.
Yes. Branching is good, keeping the history is good, tagging is good. Merging within files can succeed only accidentally. Merging is of course OK if the distributed changes are made to different files, say, one person modifies one hierarchical schematic sheet and another one modifies another; or one modifies the schematic and another one meanwhile modifies the layout.