Did i just destroy my work by incorrectly using git rebase

This question already has an answer here:

  • Undoing a git rebase 14 answers

  • Git makes it insanely hard to lose work.

    Run:

    git reflog
    

    Than look for the commit that was just before the rebase

    Then check it out

    git checkout <sha>
    

    Look around, is it the version you wanted to recover?

    If so, create a branch here

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

    上一篇: rebase分支掌握恢复

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