本文介绍了git add和git stage命令之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
git add filename
和git stage filename
有什么区别?因为当我尝试它们两个时,它们看起来像是在做同样的事情.
What is the difference between git add filename
and git stage filename
? Because when I tried them both it looks that they do the same thing.
推荐答案
作为文档说,git stage
只是git add
的同义词,因此用法上没有区别.
As the documentation says, git stage
is just a synonym for git add
, so there is no difference in usage.
这篇关于git add和git stage命令之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!