首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >C项目的Git忽略文件

C项目的Git忽略文件
EN

Stack Overflow用户
提问于 2009-05-11 03:30:21
回答 1查看 22.7K关注 0票数 21

我刚刚开始学习C语言(使用Thinking In C),我想知道在C项目的git存储库中应该忽略哪些文件。

没有什么建议是显而易见的--我完全是个菜鸟。谢谢!

EN

回答 1

Stack Overflow用户

发布于 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
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/846639

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档