码迷,mamicode.com
首页 > 其他好文 > 详细

git diff

时间:2016-10-26 11:22:25      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:mit   commit   ranch   com   lib   --   工作区   版本库   cache   

git diff  工作区与暂存区的差别

git diff -cached / git diff -staged  暂存区与版本库的差别

git diff HEAD  工作区与版本库的差别

git diff branch1 branch2  两个分支的最新commit的差别

git diff branch1...branch2  自branch1与branch2分开以来,branch2上的变化

git diff --stat  查看简单的diff结果

git diff branch1  查看当前目录与另外一个分支的差别

git diff HEAD -- ./lib  显示当前目录的lib目录和上次提交之间的差别

git diff HEAD^ HEAD  查看上次提交与上上次提交的差别

git diff commit1 commit2  查看两次提交之间的差别

git diff

标签:mit   commit   ranch   com   lib   --   工作区   版本库   cache   

原文地址:http://www.cnblogs.com/mengff/p/5999574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!