It turns out to be a pretty good idea to use Gerrit even when you contribute your changes to other repositories, or even when you want to keep your custom changes to yourself and at the same time be able to stay up to date with remote changes.
So how does that work, in short?
- Open up Gerrit website and navigate to Projects. Create a new project, that will be a fork of another repository. Create initial commit, it may make things easier;
- Open Access configuration for this project. Create new reference refs/* and add
- permission Push merge commits to project owners group (that will allow you to invoke git push);
- permission Forge commiter identity - this will be required by Gerrit to accept the changes you are not an author of.
- Clone this repository;
- Branch off the master branch;
- Add new upstream: git remote add upstream
- Merge the upstream's master branch to your local master branch
- Push changes to gerrit using git push origin master.
That's pretty much it. Good thing about mixture like the above is: you can - at any time in the future - recreate this exact configuration. It will work. You will also be able to push changes - once reviewed - to your upstream repository.