[openstack-dev] [GIT] Reset a commit in Gerrit

Edgar Magana emagana at plumgrid.com
Sun Oct 20 18:31:09 UTC 2013


Floren,

Just just need to send a patch to gerrit.

>From you local repo, do the necessary fixes and be sure everything is just
as you want.
Then simply run:
#git commit -a --amend
#git review

Thanks,

Edgar

On 10/20/13 11:26 AM, "Floren Llanos" <florenllanos at gmail.com> wrote:

>Hello,
>
>I'm a newbie contributor in Openstack, and I'm newbie using git and
>gerrit too.
>
>I committed a change to gerrit of two files but one of them is not
>correct and I must to undo the change (only one of this files). I need
>to remove this file from gerrit and leave only one.
>
>I found in http://git-scm.com/book/ that I can use git checkout --
><file> to undo the change in my local environment and I've read about
>git reset too, but I've understand that if this use it's only for
>stashing files. I don't know how undo the change in gerrit (remote).
>
>Thanks in advance,
>
>Floren
>
>_______________________________________________
>OpenStack-dev mailing list
>OpenStack-dev at lists.openstack.org
>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev





More information about the OpenStack-dev mailing list