Create a topic branch
git checkout -b TOPIC -t origin/master
Make some commits.
echo 1 > whitespace.txt git commit -a -m 'Change Foo' echo 2 > whitespace.txt git commit -a -m 'Change Foo again'
Squash the commits:
git squash-commits
This is only needed if you have more than one commit on your branch.
Push to Gerrit
git gerrit-push-master
Edit your commits more.
echo 3 > whitespace.txt git amend-head
Re-squash if needed. (Not needed if you only amended your original commit.)
Push to Gerrit.
git gerrit-push-master this is a message
The title of this patchset will be "this is a message".