Gerrit/Tutorial/tl;dr

This is a very short guide to using Git and Gerrit for MediaWiki development. For more details, check Gerrit/Tutorial and Gerrit/Advanced usage.

Setup git:
 * Install and configure Git
 * Create an SSH key

Setup account in our infrastructure:
 * Create a developer account
 * Install git-review

Get the code:



Write and send new code:

Go to Gerrit, click your change and write a reviewer name in the input box near the "Add Reviewer" button. If you don't know who to invite, try the maintainer for the component you've edited, or ask on IRC.

If the reviewer asks you to make changes, you'll have to make them and amend your change:

To test or otherwise work with other people's code, just follow the same steps to amend a change described above, using the corresponding.

Note: if you do "git commit --all --amend -m 'my new commit message'" then git will SILENTLY create a new Change-Id and thus a new entry in the branch in gerrit instead of a new patchset, which is probably not what you wanted to do. Use a local editor for commit messages for patchsets and not the "-m" option.