0

Are there some differences between git add . and git add -A?

Thanks.

Just a learner
  • 26,690
  • 50
  • 155
  • 234
  • 5
    Exact duplicate of http://stackoverflow.com/questions/572549/difference-of-git-add-a-and-git-add: you cannot ask this question with this title without seeing the original question (23 votes) in the list of related questions made precisely to avoid this kind of duplicates. – VonC Nov 27 '10 at 15:21

1 Answers1

3

git add stages all modifications and any new files.

git add -A stages all modifications and any new files, and will also remove any which are no longer in the working tree. (It also spotted renames when I tried it.)

Lunivore
  • 17,277
  • 4
  • 47
  • 92