This is what Jayesh Bhoot looks like, with a lopsided smile on its right, which almost closes his right eye while smiling, which strongly implies that he needs to work on his lazy left-side cheek muscles.

git stage over git add

Posted on

Collected in

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.

Post author's photo Written by Jayesh Bhoot

Comments