git add

noun

say it: “git AD” /ɡɪt æd/

The Git command that puts chosen changes in the staging area, ready for the next commit.

What does git add do?

git add — Adds selected working-tree changes to the staging area.

git add shopping-list.txt

In a sentence

  • “I used git add on just the two files I meant to commit.”

Level: Novice · More Git terms at this level

Updated