git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Commit to wrong branch. How to fix?
@ 2009-09-04 15:54 Howard Miller
  2009-09-04 16:19 ` Michael J Gruber
  0 siblings, 1 reply; 7+ messages in thread
From: Howard Miller @ 2009-09-04 15:54 UTC (permalink / raw)
  To: git@vger.kernel.org

I commited to the wrong branch and I can't figure out what to do. To  
make matters worse I then did 'git reset HEAD^' which has made things  
much worse. It didn't remove the commit and now I can't change  
branches. I'm utterly confused. Any help much appreciated!

Moral - use git status liberally and read it carefully before doing  
anything. A 'git undo" command would be great is someone is feeling  
generous :-) 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-05 12:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-04 15:54 Commit to wrong branch. How to fix? Howard Miller
2009-09-04 16:19 ` Michael J Gruber
2009-09-04 17:11   ` Erik Faye-Lund
2009-09-05 12:51     ` Michael J Gruber
2009-09-04 18:01   ` Howard Miller
2009-09-04 18:03   ` Howard Miller
2009-09-04 18:51     ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).