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.