Fwd: git reset HEAD~1

yangwei weiyang wei.a.yang at gmail.com
Mon Feb 13 14:22:17 UTC 2012


---------- Forwarded message ----------
From: yangwei weiyang <wei.a.yang at gmail.com>
Date: 2012/2/13
Subject: Re: git reset HEAD~1
To: Ralf Corsepius <ralf.corsepius at rtems.org>


Hi ,
It seems that in my local area the git repository is more slow than the CVS
repository for Rtems. Now it is only 3Kb/S using git repository,
anyone encounter this situation?

WeiYang
Best Regards


2012/2/13 Ralf Corsepius <ralf.corsepius at rtems.org>

> Hi,
>
> http://wiki.rtems.org/wiki/**index.php/Git<http://wiki.rtems.org/wiki/index.php/Git>
>
> tells:
>
>  git reset HEAD-1
>
> Removes the last 1 (or any other number you put) commit from the current
> branch. git reset should only be used on local branches that no one else is
> accessing remotely. This is a very powerful and tricky command; A good
> description of what it enables to do can be found here
>
>
> Either there is a language barrier causing me to misunderstand this
> sentence or this sentence doesn't seem right:
>
> git reset HEAD  ... removes the last commit
> git reset HEAD~1 ... remove the last 2 commits
>
> The human factor had just hit me (I needed to revert my last commit),
> causing me to exercise this to trip over this.
>
> Ralf
>
>
> ______________________________**_________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/**listinfo/rtems-devel<http://www.rtems.org/mailman/listinfo/rtems-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20120213/3d5a35a4/attachment-0001.html>


More information about the devel mailing list