Last active
June 17, 2016 06:34
-
-
Save rock88/c3e45880e636a70bb271 to your computer and use it in GitHub Desktop.
Git HEAD detached fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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