我是否因错误地使用git rebase而摧毁了我的工作?

这个问题在这里已经有了答案:

  • 撤消git rebase 14个答案

  • Git让它非常难以失去工作。

    跑:

    git reflog
    

    比寻找rebase之前的提交

    然后检查出来

    git checkout <sha>
    

    环顾四周,是你想要恢复的版本吗?

    如果是这样,请在此处创建分支

    git checkout -b mybranch
    
    链接地址: http://www.djcxy.com/p/23529.html

    上一篇: Did i just destroy my work by incorrectly using git rebase

    下一篇: Is there an easy way to delete untracked git files