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

If git add CTRL+ Astarts tracking changes and milestones of already tracked files, why should I use Stage to Commit CTRL+ Tin the git gui?


source to share

3 answers

Here is the answer to my question: CTRL+ Ain the GUI GIT is actually ADD NEW REMOTE and is not the same as GIT ADD! In the GIT GUI, there is no distinction between "add" and "commit", both are done with "stage to Commit": 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" could be considered the "first stage" of the file, but actually "adding" means "adding to the stage" or "setting to do".

CTRL + T= 'stage to commit' in GIT GUI = 'git add' on command line
CTRL+ A= add new remote



The Stage to Commit will be for a file that is already tracking the changes you have changed. Typically you just "add" the file to start tracking changes, after which you just put in the file to commit that you changed.



According to the git documentation , they are synonymous. The team prepares files for commit.

Example: git add app_controller.php



All Articles