On Thu, 24 Jan 2013 21:16:56 -0600
John McKown <john.archie.mck...@gmail.com> wrote:

> > Today I commited two Java classes, but I didn't push..
> >
> > how can I exclude my commit? I want my code like before my commit...
> >
> > I use e-git in eclipse.. but i can use git command line too..

> git reset HEAD^
> 
> You might to look at the --hard or --soft options.

Also it's a good time to read "Reset demystified" [1].

1. http://git-scm.com/2011/07/11/reset.html

-- 


Reply via email to