Git ignore file for C projects

后端 未结 3 1918
余生分开走
余生分开走 2020-12-16 12:24

I\'ve just started to learn C (using Thinking In C) and I\'m wondering about what files I should be ignoring in a C project\'s git repository.

No suggestion can be

3条回答
  •  再見小時候
    2020-12-16 12:53

    I use this in my .gitignore But I am building for micro-controllers, so I don't know if it helps you much.

    The easiest way to know, is just do a make clean, then add all your files, then do a make all and see what extra stuff appears.

    #Some of these are related to eclipse. So i keep them out of my repo
    .cproject
    .dep/
    .project
    .settings/
    
    #files being edited
    *~
    
    # make and build files
    *.lst
    *.o
    *.eep
    *.lss
    *.map
    *.sym
    
    # I keep these, since I prefer having the reference of the final build
    # *.elf
    # *.hex
    

提交回复
热议问题