How can I get things back after git reset –hard

This question already has an answer here:

  • Undo git reset –hard with uncommitted files in the staging area

    6 answers

  • Reset a file in git gui
  • How to find all commits having a particular parent?
  • Why does Gerrit show a different number of changes than git does?
  • How can I see list of ignored files in git?
  • How to move all commits from a branch to another?
  • What does green folder icon in github web interface mean?
  • Preventing git merge from confirming commit message
  • Git merge one branch in all other branches
  • How to remove all commits of a topic Git branch?
  • Git unintentionally pushing files
  • Creating a remote server on a LAN instead of using Git Hub
  • moving committed (but not pushed) changes to a new branch
  • One Solution collect form web for “How can I get things back after git reset –hard”

    git reflog and git fsck are your weapons of choice to rediscover the missing commits and branch them.

    Git Baby is a git and github fan, let's start git clone.