Instructions
- Install TortoiseGit
- Install Git For Windows
Using SSH with TortoiseGit
ref: https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
- Follow the guide from STEP 1 to STEP 7
- ~/ means home directory, in MS Wins, it is located in C:\Documents and Settings\New user.ssh
- The directory ~/.ssh contains the key files, after creating the public and private keys, place the files here
- Create the ssh config file to set the key to use for bitbucket (STEP 4). ~/.ssh/config:
Host bitbucket
Hostname bitbucket.org
IdentityFile ~/.ssh/id_rsa
User kiatng
Note the single space after the first line.
5. STEP 5 is optional but set it up anyway, so the agent is started when we launch Git Bash
6. Copy the contents of the public key in the file rsa_id.pub and paste it in Bitbucket
7. In TortoiseGit > Settings > Git > Remote > add a Remote with the following values:
8. URL=git@bitbucket.org; Push URL=git@bitbucket.org:emgsstars/stars.git;Putty Key=C:\Documents and Settings\New user.ssh\id_rsa.ppk
9. Save
10. Now we can push with SSH in TortoiseGit
Posted by kiatng to Git (2014-05-02 09:34)