Just a learner
Just a learner

Reputation: 28562

What's the difference between git add . and git add -A?

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

Thanks.

Upvotes: 0

Views: 211

Answers (1)

Lunivore
Lunivore

Reputation: 17602

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

Upvotes: 3

Related Questions