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 后指定要比较的文件的名称
本文标题:2.5_git diff
本文链接:https://www.haomeiwen.com/subject/ffkjsftx.html
网友评论