Still untracked files even after using git add
Guys, even after using "git add ." I still have untracked files that I can't commit.
There was another question with the same problem, but in that case it was related to case-sensitive开发者_如何学JAVA folder. I didn't change the name of any folders here.
The .
in the git add .
command refers to the "current directory". So, running git add .
will add all the files in the current directory and its subdirectories. You should ensure that you are in the correct directory before running git add .
.
If you're one level down in a subdirectory, then git add ..
would be equivalent to cd ..; git add .
.
git add -A is what you want. It will add everything. This includes files you deleted.
精彩评论