3

I have seen on SO this post and this post saying that there is one difference between git add . vs git add -A, and it's related to deleted files being staged by git add -A and not git add .

But I tried it on git 2.3.2, as far as I can tell, deleted files are staged by both commands. Has this behavior changed?

Community
  • 1
  • 1
Boon
  • 40,656
  • 60
  • 209
  • 315
  • It's not a duplicate. That post also says that rm operation is not captured by git add . I read that before posting this as well. – Boon Jul 30 '15 at 02:50
  • 2
    Have you read past the first answer? Have a look at [this](http://stackoverflow.com/a/26039014/1984384) one. I think that should cover the differences in behavior between the different git versions. Note, that `git add .` only adds changes from the current directory, whereas `git add -A` also stages changes from the parent dir(s). – Tim Bodeit Jul 30 '15 at 03:14

0 Answers0