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

Thierry Carrez thierry at openstack.org
Mon Oct 21 09:36:56 UTC 2013


Dolph Mathews wrote:
> On Sun, Oct 20, 2013 at 1:31 PM, Edgar Magana <emagana at plumgrid.com
> <mailto:emagana at plumgrid.com>> wrote:
>     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
> 
> 
> The only "gotcha" here is that you need to maintain the same Change-Id
> that was appended to your original commit message (and push it to the
> same branch in gerrit, if you specified one originally). Removing or
> altering the Change-Id will prevent your patch from updating your
> existing review. The rest of your commit message can be freely rewritten.

Additionally here are a few links to our doc:
https://wiki.openstack.org/wiki/GerritWorkflow
https://wiki.openstack.org/wiki/GerritJenkinsGit

Regards,

-- 
Thierry Carrez (ttx)



More information about the OpenStack-dev mailing list