Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Git add (ctrl+A) and Stage to Commit (ctrl+T) in the git GUI?

If git add CTRL+A starts tracking changes AND stages changes to already tracked files, why should I ever use Stage to Commit CTRL+T in the git gui ?

like image 562
Pearson Avatar asked Dec 07 '25 21:12

Pearson


1 Answers

Here's the answer to my question: CTRL+A in the GIT GUI is actually to ADD A NEW REMOTE and is not the same as GIT ADD ! In the GIT GUI, there does not seem to be any distinction between 'adding' and 'staging' , both are done by the 'stage to Commit' command: CTRL+T. And according to this: http://hoth.entp.com/2008/11/5/what-git-add-really-means , 'git stage' is an alias for 'git add'

Thanks aardvarkk for your answer. I suppose 'adding' can be considered the 'first staging' of a file, but really 'adding' means 'adding to the stage' or 'staging to commit'.

Concisely,
CTRL+T = 'stage to commit' in the GIT GUI = 'git add' at the command line
CTRL+A = add a new remote

like image 151
Pearson Avatar answered Dec 10 '25 12:12

Pearson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!