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

  • What is the current way to remove a git submodule?
  • git branch -d <BRANCH>: Fatal - Couldn't look up commit object for HEAD
  • Apply gitignore on an existing repository already tracking large number of files
  • How do you keep secrets.yml secret in rails?
  • Avoid pass-phrase prompt on git push to remote
  • How to resolve all merge conflicts in favor of the just-popped stash?
  • Laravel4 Composer update failing
  • GIT: Appending a patch made after a few commits
  • “${1-}” vs “$1”
  • How do I get a list of old->new rewritten commit SHAs from 'git filter-branch'?
  • Merge development branch with master
  • YouCompleteMe can't autocomplete
  • 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.