-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第5章 Git暂存区 #43
Comments
理解Git暂存区(stage)
|
不要使用 |
修改不能直接提交吗
这时如果与
HEAD
(当前版本库的头指针)或master
分支(当前工作分支)进行比较就会发现有差异。这个差异才是正常的,因为尚未真正提交嘛。不带任何选项和参数调用
git diff
显示工作区的最新改动,即工作区与提交任务(提交暂存区, stage)中相比的差异。将工作区和
HEAD
(当前工作分支)相比,会看到更多的差异。通过参数
--cached
或--staged
调用git diff
命令,看到的是提交暂存区(提交任务, stage)和版本库中文件的差异。The text was updated successfully, but these errors were encountered: