美文网首页
2.5_git diff

2.5_git diff

作者: Android_Dev | 来源:发表于2018-06-07 22:46 被阅读5次

    git diff 比对不同空间,具体如下图: 

    git diff commitId1 commitId2:比较仓库Repository中两次commit的差异

    git diff :无参数默认是对工作区与暂存区的比较

    git diff --staged :是比较暂存区与仓库文件的比较

    当多个文件时,可在git diff 或git diff --staged 后指定要比较的文件的名称

    相关文章

      网友评论

          本文标题:2.5_git diff

          本文链接:https://www.haomeiwen.com/subject/ffkjsftx.html