Question: In gerrit, I usually push multiple small commits together. Once they are reviewed & ready to be submitted, I see button `Submit including parents` on all the changes whereas the 1st change has a `Submit` button.

While getting these changes reviewed, many-a-times the HEAD of target branch moves ahead of the parent commit of my changes. If I were to rebase this whole set of changes on to the current HEAD of the branch, it requires me to do it manually on my local system and again push to gerrit. I was wondering if we have some option like `Rebase including parents` where I could just rebase the whole chain without having to do anything on my local system (only if it has no conflicts)?

Answer: 
> 
> I was wondering if we have some option like Rebase including parents where I could just rebase the whole chain without having to do anything on my local system (only if it has no conflicts)?
> 
> 
> 

No, Gerrit does not have such a feature. The only way to do this in Gerrit's UI is to individually rebase each change in the series, from the bottom up.

I have created a [request on the Gerrit issue tracker](https://bugs.chromium.org/p/gerrit/issues/detail?id=7842) to add a "rebase including parents" feature.
[Gerrit 2.4 version](http://gerrit-documentation.storage.googleapis.com/ReleaseNotes/ReleaseNotes-2.4.html), which introduced the rebase button, as [mentioned here](http://aniszczyk.org/2012/11/26/gerrit-tip-rebase-change-button/).

A rebase would only involve one branch, with possibly ancestor commit in parent branches.

If you have local parent branches which are changed after that rebase, the simplest way is to fetch the Gerrit repo and reset yuor local branches to the new remote branches HEAD

```
git branch -f myBranch origin/myBranch
git branch -f myParentBranch origin/myParentBranch

```

That way, the rebase is done on Gerrit side, and the reset is done locally.