User:Mainframe98/Gerrit

A Gerrit how-to for those moments our brains fail us with the lovely error message.
 * See also Gerrit/Tutorial

Creating a patchset

 * 1) Ensure the repository is set up with git review -s (remember: s for setup)
 * 2) Prepare the repository:
 * 3) Pull the latest changes from the repository with git pull origin master
 * 4) Create a branch for your changes with git checkout -b BRANCHNAME-GOES-HERE origin/master . Remember to name it appropriately, such as T2001/SHORT-DESCRIPTION
 * 5) Make your changes
 * 6) Prepare to commit:
 * 7) Check if the commit meets the Pre-commit checklist
 * 8) Commit with git commit . Don't use the -m because it restricts you to only the commit summary
 * 9) Prepare for pushing:
 * 10) Update your local repository with git pull --rebase origin master . It isn't strictly mandatory, but on repositories with a high update rate, it can prevent trouble
 * 11) Push your changes with git review -R . If you did not use the step above, omit -R as it tells git-review not to perform a rebase
 * 12) After the patch is merged or abandoned, switch back to master with git checkout master and remove the branch with git branch -d BRANCHNAME-GOES-HERE