Did i just destroy my work by incorrectly using git rebase

This question already has an answer here:

  • Understanding GPL better
  • What is default git core.askpass configuration value?
  • How do i commit a windows symlink into Git
  • Why does GitHub think my code has differences?
  • Findbugs for Git Pull Request
  • What is the internal format of a git tree object?
  • Rebasing a branch including all its children
  • Check if directory is git repository (without having to cd into it)
  • Eclipse keeps re-checking my git repositories. How do I turn this off or change the interval?
  • “Access denied” when pushing to remote repository via SSH
  • git-apply fails mysteriously, how do I troubleshoot/fix?
  • What's a good way to organize a large collection of personal scripts using git?
  • One Solution collect form web for “Did i just destroy my work by incorrectly using git rebase”

    Git makes it insanely hard to lose work.


    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
    Git Baby is a git and github fan, let's start git clone.