[SR-Dev] what is git equivalent of 'svn revert'
jan at iptel.org
Mon Apr 20 13:06:52 CEST 2009
On 20-04 12:25, Juha Heinanen wrote:
> Juha Heinanen writes:
> > i did some adds/commits, but did not push them yet. now i want to get
> > my repo to clean stage it was before all this. in svn world i would
> > give command 'svn revert', but with git i haven't found anything simple
> > (nor working complicated) way to accomplish it. is there any?
> looks like
> git reset --hard HEAD
Yes, in general it is 'git reset --hard <commit_id>' where commit id is the
sha1 identifier of a commit you want to reset to.
More information about the sr-dev