美文网首页
git回滚到任意版本

git回滚到任意版本

作者: iloveyou6415 | 来源:发表于2017-03-02 17:54 被阅读0次

先显示提交的log

$ git log -3commit4dc08bb8996a6ee02fAuthor: Mark Date:  Wed Sep708:08:532016+0800xxxxxcommit9cac9ba76574da2167Author: xxxDate:  Tue Sep622:18:592016+0800improved the requstcommite377f60e28c8b84158Author: xxxDate:  Tue Sep614:42:442016+0800changedthepasswordfromemptytomax123

回滚到指定的版本

gitreset--hard e377f60e28c8b84158

强制提交

gitpush-f origin master

完美

相关文章

  • git常用操作

    git回滚到任意版本 git回滚到任意版本 先显示提交的log 回滚到指定的版本 强制提交 完美

  • git回滚

    一、 git回滚到任意版本 查看历史提交的log中的版本号$ git log -3 查看最近3次提交记录 回滚到...

  • git回滚到任意版本

    git log -3//显示3条log信息 回滚到指定的版本 强制提交

  • git 回滚到任意版本

    查看提交记录 回滚到某次commit,比如第二次:c9a80a3cf366bb7532efe869c1753b37...

  • git回滚到任意版本

    先显示提交的log $ git log -3commit4dc08bb8996a6ee02fAuthor: Mar...

  • git回滚到任意版本

    先显示提交的log 回滚到指定的版本 强制提交

  • GIT 常用命令随笔

    常用git 命令 git 代码回滚 先显示提交的log 回滚到指定的版本 强制提交 git 新建项目 git 修改...

  • git回滚版本

    回滚到指定版本idgit reset --hard commit_id强推回滚到远程git push -f ori...

  • 开发常用命令

    Maven 检查mvn包依赖mvn dependency:tree Git 强制文件回滚到某个版本git chec...

  • git 本地回滚和远程回滚

    -- 本地分支回滚到指定版本 git reset --hard -- 强制推送到远程分支...

网友评论

      本文标题:git回滚到任意版本

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