Skip to content
  • Staging Area & Adding · Git & GitHub

Staging Area & Adding

LearnViaNotes @learnvianotes· 1 min read

Preparing changes for a commit snapshot by moving them to the staging index.

Staging Specific Files

To stage changes in a specific file, use the git add command:

Shell
git add index.html

Staging All Changes

To stage all new, modified, and deleted files in the entire project folder in one command, use the dot wildcard:

Shell
git add .

Analogy: Packing boxes for moving

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report