How to setup Assembla Repository Git

Setting up Git Assembla Repository can be a challenge because of the security features in Git. Here are the steps that you need to follow to create an Assembla Repository and checkout (and commit) your changes.

1. Create Assembla Account

Make it Git Repository. It will give you a URL where you can post your code from your local computer.

2. Create SSH key

Git works on SSH key. Your Assembla needs to know about the SSH key(s) that you will generate on your computer. There are two type of SSH keys generated. Private and Public. Private key has no file extension. Public key has .pub extension. SSH Key also needs phrases. You will need the private key and this phrase to connect to Assembla.

Issue this command to generate SHH key on mac

ssh-keygen -t rsa -C ""

//outputGenerating public/private rsa key pair.
Enter file in which to save the key (/Users/work/.ssh/id_rsa): my_ssh_key
Enter passphrase (empty for no passphrase): 

//This will generate fingerprints in the output as well but the actual keys are in the file.
// my_ssh_key    contains identification needed by Assembla
// my_ssh_key.pub contains public key. This needs to be uploaded to Assembly (My profile> MY SSH Keys)
// phrase      The phrase that you typed in will also be required by Assembla when you connect to your remote repository

3. Download SmartGit (Git Client)

SmartGit will use the setting that you created in step two. Create an empty folder where all your repositories will be hosted such as /Repositories/. Create subfolder for the project where that particular project will be sitting. Example

/Repositories/
    /Project1
    /Project2

During the setting SmartGit will require

* The url of your repository (found project/Git tab on top)
* my_ssh_key, point SSH key to this file
* Phase, Type the phrase that you entered when generating SSH

If you have done all the steps, you should be all set. This was a quick tutorial of How to setup Assembla Repository Git.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*