Detached HEAD in git

Git-R-Donephoto © 2005 Kevin Trotman | more info(via: Wylio)
So, backed myself into a corner with git today. Committed something to a detached head and immediately changed to a new branch (read as ‘lost all my work’).

This page saved me hours — shame on me for not committing sooner.

Up until this point, the gitref reference had sufficed for my needs.

Anyone know of an advanced git reference with more solutions to those kinds of problems?

About softwaregravy

Software Engineer, aspiring financial guru, and entrepreneur; all mixed with a bit of awesome.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s