NguyenTrungTin
5/15/2018 - 4:42 AM

`git add -A` vs `git add .` vs `git add -u`

git add -A vs git add . vs git add -u

For Git version 2.x

Summary:

  • git add -A - stages All

  • git add . - stages new and modified, without deleted

  • git add -u - stages modified and deleted, without new

Reference: StackOverflow