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
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
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
(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
In your Windows Explorer navigate to a location of your choice > Create an empty folder > Right click on it > Git Clone
Paste your SSH URL > Point to your saved private key (mine was jyowell.ppk) > Click OK
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"
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)
(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
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