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?

2
  • 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. Commented Jul 30, 2015 at 2:50
  • 2
    Have you read past the first answer? Have a look at this 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). Commented Jul 30, 2015 at 3:14

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.