我刚刚开始学习C语言(使用Thinking In C),我想知道在C项目的git存储库中应该忽略哪些文件。
没有什么建议是显而易见的--我完全是个菜鸟。谢谢!
发布于 2012-10-31 20:28:23
我在我的.gitignore中使用它,但我是为微控制器构建的,所以我不知道它是否对您有很大帮助。
要知道,最简单的方法就是执行make clean,然后添加所有文件,然后执行make all并查看出现了哪些额外的内容。
#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
https://stackoverflow.com/questions/846639
复制相似问题