TortoiseGit: how to create and upload your public key to GitHub
You can download TortoiseGit from here.
How to create your SSH key
TortoiseGit comes with PuTTYgen, so let’s use it to create your key:
Once PuTTYgen opens up:
- Click Generate
- Copy the Public OpenSSH key
- Enter a passphrase
- Save the Private Key
The saved Private Key will be used later below. (I saved it as key.ppk)
Load your public key to Git
In your web browser: Login to GitHub> Settings > SSH and GPG keys
- Select New SSH Key and provide a suitable name for the title
- Paste your public OpenSSH key in the textbox “Key” > Add SSH Key
In order to enable the key, you need to re-login to your git account.
Navigate to a location of your choice > Create a folder > Right-click on it > Git Clone.
Paste your SSH URL > Point to your saved private key > Click OK
You will be asked for your SSH key passphrase if all good you will get success.
Commit some code locally
Right Click on the Folder containing your changes > Git Commit
Push the commits to your central repo
Right-click on the folder > TortoiseGit > Push
Happy Testing !! :D