git add和git stage命令之间的差异

问题描述:

git add filenamegit 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.