Interview Prep/Git & GitHub/Commits, branches and tags

What is the difference between `git add .`, `git add -A` and `git add -u`?

BeginnerConceptCommits, branches and tags
Answer

git add -A stages new, modified and deleted files across the whole repo. git add . stages everything under the current directory (since Git 2.0 it includes deletions). git add -u stages modifications and deletions of already tracked files only, ignoring untracked ones.

All Git & GitHub questions Roadmap: Git & GitHub

More on Commits, branches and tags