Skip to content

Instantly share code, notes, and snippets.

@trak3r
Created December 19, 2008 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trak3r/37995 to your computer and use it in GitHub Desktop.
Save trak3r/37995 to your computer and use it in GitHub Desktop.
Dear Git experts,
The other day I had made a change to my code and committed it then realized I was in an unrelated branch; I had intended to commit the change to master.
I switched to master and attempted to merge just the errant commit (by the long hash key) from the branch but that ended up merging the entire branch into master.
I blame this faux pas on my still-ingrained Subversion mentality.
Where did I go wrong? How should I have handled correcting the mistake?
Thanks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment