[英]How do you add .gitignore to staging when using git add --all
使用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
條目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.