尽管.gitignore文件强制添加 [英] Force add despite the .gitignore file
本文介绍了尽管.gitignore文件强制添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有办法强制 git
添加文件,尽管 .gitignore
文件?
Is there a way to force git
to add a file despite the .gitignore
file?
推荐答案
请参阅 man git-add
:
See man git-add
:
-f, --force
Allow adding otherwise ignored files.
所以运行这个
git add --force my/ignore/file.foo
这篇关于尽管.gitignore文件强制添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文