【发布时间】:2017-02-23 01:49:21
【问题描述】:
使用 git add --all 时,.gitignore 不会添加到暂存中。那么我尝试像这样手动添加.gitignore
$ git add .gitignore
The following paths are ignored by one of your .gitignore files:
.gitignore
Use -f if you really want to add them.
所以我必须使用 -f 来强制添加 .gitignore,这很烦人
【问题讨论】:
-
好吧,你可以选择不 gitignore
.gitignore文件作为替代...
标签: git