Example: keep CAD and PCB files in Git LFS with locking

MT
MCDock Team MCDock team · MCDock · 1 d ago

If your repository did not come from a template, add a .gitattributes like this:

*.SLDPRT filter=lfs diff=lfs merge=lfs -text lockable
*.SLDASM filter=lfs diff=lfs merge=lfs -text lockable
*.kicad_pcb filter=lfs diff=lfs merge=lfs -text lockable
*.pdf filter=lfs diff=lfs merge=lfs -text

lockable makes Git open those files read-only until you run git lfs lock <file>, so two people never edit the same part at once.

▲ 0