/ Published in: Bash
Expand |
Embed | Plain Text
# if you have already checked out to master, you won't know the commit-ish of your "no branch": git fsck --lost-found # (to find your <commit-ish>) git merge <commit-ish> # if you are still on your "no branch" commit: git log # (the commit-ish will be on the first line) git checkout master git merge <commit-ish> # or git log | head -n 1 | cut -d ' ' -f 2 | pbcopy git checkout master git merge <commit-ish>
Comments
Subscribe to comments
You need to login to post a comment.

Thanks Kmorey! You saved my life! :)