美文网首页
git 常用命令git diff

git 常用命令git diff

作者: L白水飘萍 | 来源:发表于2018-12-21 11:10 被阅读0次

    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

    相关文章

      网友评论

          本文标题:git 常用命令git diff

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