October 12, 2021    Share on: Twitter | Facebook | HackerNews | Reddit

Git add - stage changes in various ways

up:: [[MOC_git]]]

  • git add -A stages all changes
  • git add . stages new files and modifications, without deletions (on the current directory and its subdirectories).
  • git add -u stages modifications and deletions, without new files

With git 2.0 git add <path> is the same as git add -A <path>.

Tags:  git