git 常用命令git diff
2018-12-21 本文已影响0人
L白水飘萍
git diff 查看尚未暂存的文件更新了哪些部分
git diff filename 查看尚未暂存的某个文件更新了哪些
git diff –cached 查看已经暂存起来的文件和上次提交的版本之间的差异
git diff –cached filename 查看已经暂存起来的某个文件和上次提交的版本之间的差异
git diff commit-id1 commit-id2 查看某两个版本之间的差异
git diff commit-id1:filename commit-id2:filename