/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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
