Skip to content

Instantly share code, notes, and snippets.

@rock88
Last active June 17, 2016 06:34
Show Gist options
  • Save rock88/c3e45880e636a70bb271 to your computer and use it in GitHub Desktop.
Save rock88/c3e45880e636a70bb271 to your computer and use it in GitHub Desktop.
Git HEAD detached fix
// for find commit hash from HEAD
git reflog
// commit all changes and remember last commit hash
git checkout your_branch
git reset --hard your_hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment