git stage
over git add
Collected in Git
I've come to prefer git stage
to git add
. The former is a synonym of latter, but makes the intent clearer.
man git-add
says:
Add file contents to the index
man git-stage
says:
Add file contents to the staging area
For all purpose, index in git parlance means staging area (as far as I know), but the latter language feels more in sync with how git talks about staging/unstaging in git status
.
But it might just be because I grew up on the staging parlance.
As usual, feel free to shine a light on any ignorance on my part.
Written by Jayesh Bhoot