Felipe
Felipe

Reputation: 151

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 folder. I didn't change the name of any folders here.

Upvotes: 15

Views: 9468

Answers (2)

Adam Dymitruk
Adam Dymitruk

Reputation: 129556

git add -A is what you want. It will add everything. This includes files you deleted.

Upvotes: 8

Greg Hewgill
Greg Hewgill

Reputation: 993025

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 ..

Upvotes: 18

Related Questions