在git GUI中,Git add(ctrl + A)和Stage to Commit(ctrl + T)有什么区别? [英] What's the difference between Git add (ctrl+A) and Stage to Commit (ctrl+T) in the git GUI?

查看:1332
本文介绍了在git GUI中,Git add(ctrl + A)和Stage to Commit(ctrl + T)有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果git add CTRL + A 开始跟踪更改并且阶段更改为已跟踪的文件,为什么我应该使用阶段提交 CTRL + T in the git gui?

解决方案

这是我的问题的答案:
GIT GUI中的 CTRL + A 实际上是ADD A NEW REMOTE,与GIT ADD不一样!
在GIT GUI中,添加和分段之间似乎没有任何区别,两者都是通过提交阶段命令完成的: CTRL + Ť。根据这个: http://hoth.entp .com / 2008/11/5 / what-git-add-really-means
'git stage'是'git add'的别名



感谢aardvarkk提供您的答案。我认为'增加'可以被认为是文件的'第一阶段',但真正的'增加'意味着'增加到舞台'或'提交'提交'。



简单地说,在GIT GUI ='git add'中
+ T 命令行

CTRL + A =添加一个新的远程

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 ?

解决方案

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

这篇关于在git GUI中,Git add(ctrl + A)和Stage to Commit(ctrl + T)有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆