Did i just destroy my work by incorrectly using git rebase

This question already has an answer here:

  • How do I remove the old history from a git repository?
  • How to get files changed/removed/added using libgit2sharp?
  • Git subtree merge strategy or subtree command?
  • Renaming current branch in intellij
  • What's the difference between “git add -u” and “git add -A”?
  • is my branch tracking to master?
  • How to get email diffs for GitHub pushes?
  • Can I pull to a branch other than the one I'm on?
  • How can I use git for a framework and for a project using that framework while keeping the project separate?
  • Local Jenkins can't authenticate remote Gitlab private repository
  • Why are files checked out to previous changesets appearing in the index as modified?
  • jenkins/hudson can't connect to github repo
  • 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.

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