Gerrit/TortoiseGit tutorial

This tutorial may help windows users contributing your source codes to gerrit and git.

Install software

 * 1) Download and install Git for Windows
 * Select Windows Explorer integration - Context menues entries: "Git Bash here" which is recommended
 * 1) Download and Install TortoiseGit

Create and publish your SSH-Key

 * Start puttygen.exe in the folder  and create an new SSH key and save the private key it in a .ppk file, also save the public key.
 * Login to https://gerrit.wikimedia.org, use your labs username and password
 * Go to Settings > SSH Public Keys and add your public key
 * Go to Settings > Identities and verify your email address and account (identity)

Clone your working copy

 * Right.click on windows explorer ans select "Git clone" to clone a repository to the given directory. Use the URL from gerrit repository e.g.  for the pywikibot core. (Be aware: port 29418 is required for ssh access here. The default ssh port 22 does not work!) You may choose "Load Putty Key" and select your private .ppk file given above. Or you may deselect that button and setting up in the next step.

Setting up TortoiseGit

 * Right-click on your repository and open TortoiseGit > Settings
 * Choose Git > Remote and select "origin" remote server. Verify the URL and select your private Putty Key .ppk file if not done previously.
 * Choose Git (or Git > Config) and verify whether your Name and Email of the User Info is the same as your gerrit account.
 * Click on Edit global .gitconfig and again verify your name and email to be these same as in gerrit.
 * Choose Git > Set Extend Menu Item and deselect Browse References

Git Settings

 * Right-click on your repository and start Git Bash
 * Type the following lines:

(... to be continued asap ...)