Merge (no branch) into master

Use git show to get the SHA1 commit ID of the current HEAD. With that information, you can’t lose those commits.

Then, switch to master and:

git merge abc123

where abc123 is the SHA1 from the first step.

Leave a Comment