TortoiseGIT: Create and upload your public key to CloudForge

Make sure you got the initial stuff setup first...

This article assumes that you have TortoiseGIT and msysgit installed and setup already. As well as CloudForge Project with GIT added to it. Please follow this other article first if you have not done so yet.

Create your SSH keys...

TortoiseGIT comes with Puttygen, so let's use it to create your keys: Start > TortoiseGIT > Puttygen

Screen_Shot_2011-12-13_at_4.36.31_PM.png

 

Once PuTTY Key Generator opens up:

(1) Click Generate > (2) Copy the Public OpenSSH key > (3) Enter a passphrase (remember it - yes, you need a passphrase) > (4) Save the Private Key

Screen_Shot_2011-12-12_at_5.29.21_PM__1_.png

Notes: The saved Private Key here (4) will be used later below. (we saved it as tonas_key.ppk here)

Pitfall: You can also save the Public Key in Puttygen, but note that the format used by Puttygen to save public keys is not OpenSSH.

Only OpenSSH public keys are supported in CloudForge - so we recommend copy and paste your public key instead.

 

Load your public key to CloudForge...

In your web browser: Login to CloudForge > My Settings > Keys

Paste your public OpenSSH key in the textbox > OK

ssh1.jpeg 

(Pitfall... make sure to not enter any character rerturns inside your key - try resizing the textbox, textlines should resize too)

Clone your CloudForge GIT repo...

In your CloudForge account > Projects tab > Select Project > Expand GIT under services > Copy your git SSH URL

git12.jpeg

 

 

In your Windows Explorer navigate to a location of your choice > Create an empty folder > Right click on it > Git Clone

Screen_Shot_2011-12-12_at_5.55.21_PM.png

 

 

Paste your SSH URL > Point to your saved private key (mine was jyowell.ppk) > Click OK

git31.jpeg

Note: Use your Private Key created and saved at the beginning of this article.

 

 

You will be asked for your SSH key passphrase... if all looks good you should get "success"

Screen_Shot_2011-12-12_at_6.03.09_PM.png

Commit some code locally...

With GIT, you don't have to commit to your main central repository all the time. You can actually commit locally first

Right Click on the Folder containing your changes > Git Commit ('master' is the branch, but you could commit to other branches)

Screen_Shot_2011-12-12_at_6.25.16_PM.png

(Note: You might be asked to set your Name and Email if you haven't done so)

 

Push the commits to your central repo in CloudForge ...

As noted above, in GIT commits are referred to local interactions with your local GIT repository. 

When you are ready to share your changes with the central repository, what you need to do is a GIT Push:

 

 

 

At the root folder of your local repo: Righ click on the folder > TortoiseGIT > Push

Screen_Shot_2011-12-12_at_6.29.11_PM.png

 

 

Defaults here are a good starting point... but you can push selective local or remote branches, and even have multiple remotes for your local GIT repo

Screen_Shot_2011-12-12_at_6.32.24_PM.png

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.