Git_git diff 与 git diff -- cached 区别

1.首先,打开一个干净的工作区

Git_git diff 与 git diff -- cached 区别

2.对文件进行修改

Git_git diff 与 git diff -- cached 区别

3.使用 git diff  进行查看(这里的解释可能不是很准确,暂时这么理解!)

Git_git diff 与 git diff -- cached 区别

4. 执行 git add 将工作区中的内容add到stage,再次 执行 git diff ,发现没有内容。

Git_git diff 与 git diff -- cached 区别

5.执行 git diff --cached

Git_git diff 与 git diff -- cached 区别

6.执行 git commit 提交的情况是:

Git_git diff 与 git diff -- cached 区别

上一篇:andrewchilds/jQuery.DomOutline


下一篇:[20121115]关于oracle数据文件的第1块.txt