Staging and commitsGit
git add
Stage files or hunks before committing.
Command
git add
Example usage
Stage entire files or interactively select diff hunks.
git add <file>
git add -p
Related tags
Staging and commitsversion-controlworkflow
Stage files or hunks before committing.
Stage entire files or interactively select diff hunks.
git add <file>
git add -p