2.5_git diff
2018-06-07 本文已影响5人
Android_Dev
git diff 比对不同空间,具体如下图:
git diff commitId1 commitId2:比较仓库Repository中两次commit的差异
git diff :无参数默认是对工作区与暂存区的比较
git diff --staged :是比较暂存区与仓库文件的比较
当多个文件时,可在git diff 或git diff --staged 后指定要比较的文件的名称
git diff 比对不同空间,具体如下图:
git diff commitId1 commitId2:比较仓库Repository中两次commit的差异
git diff :无参数默认是对工作区与暂存区的比较
git diff --staged :是比较暂存区与仓库文件的比较
当多个文件时,可在git diff 或git diff --staged 后指定要比较的文件的名称