Home > git, Linux > Getting started with Git and Gitorious

Getting started with Git and Gitorious

This is my small ‘how to’ regarding Git and Gitorious.Its targeted towards the beginners.

For Git mbuf has created a nice presentation named “di-git-ally-managing-love-letters” :),i suggest beginners to read and understand it first.

Link to the presentation:

He explained the slides in an IRC classroom session, the logs of that class is available in dgplug’s wiki

Link to the his session logs:

The above two materials can be used as an excellent how-to for Git beginners.


Gitorious is a website that provides you with infrastructure to manage your project.It uses Git as a Version Control System.

Using Gitorious:

1.You need to create an account in Gitorious.Its fairly simple and straight forward.

2.You need the public key to be uploaded (copied and pasted) in Gitorious.

Creating a public key:

Install openssh:

sudo yum install openssh

Run ssh-keygen:

bash-3.2$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/zer0c00l/.ssh/id_rsa):/home/zer0c00l/.ssh/id_rsa_test
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in id_rsa_test.
Your public key has been saved in /home/zer0c00l/.ssh/id_rsa_test.pub.
The key fingerprint is:
fb:db:03:4d:43:ca:37:02:0f:b6:90:22:ca:71:60:15 zer0c00l@localhost
The key’s randomart image is:
+–[ RSA 2048]—-+
| ooE. . |
|….. o + . |
|..o. . o * o |
|.. . = = |
| S = o |
| .. . |
| . . |
| . .. |
| o… |

Note: The password need not be your root or current user accounts password.

The public key will be stored in: /home/(yourusername)/.ssh/id_rsa.pub

bash-3.2$ cat /home/zer0c00l/.ssh/id_rsa_test.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0nQ56VUU7nHjBWZPUja1nsCofdYfJhAu9XZtcixKBTZp6lKgQxnOwXYszhk6W9eV/GRcht3DL7L6i1pnyc8vic1xpC9/tkMcwEkglLhWfN3SNR6MmNPTb4mM1DeLCdyd5f7Ff6kYgy2s8RmYBf2YopfbMUlyXIlKec1AHIsqvG+YixCMTOpl5io0619ac1R0xaP6E7h8hepvUEGcKmBnuxg8UhEifj+m3NG3XJvWWUx1zTvB1CXyFNx3qiFj+UxkdrmeDO/PdEPd9HcaN1jX3e1Y+jqUD8QdlEVAC9tkGIN6mG3BpVgWdsRlMtEFUPsHPFGC6tmjzuJAVOT1Hk5ROQ== zer0c00l@localhost

So copy it and paste the public key in Gitorious.

Note: Don’t copy my key :P, you don’t know the password.

3.Create a project


4.Add repositories

5.Push the code from your local Git repository to remote Gitorious repository.

Gitorious provides users with possible workflow commands relevant to each operation.(see screen shot for more details )

Edit: If you want to start and don’t know where to begin, start cloning my code 😉

git clone git://gitorious.org/kalaisurabi_php_code/mainline.git

Categories: git, Linux
  1. Ravi Teja G
    October 2, 2010 at 10:00 am

    thanks. That helped me a lot!

  2. Fabi
    July 12, 2011 at 8:49 pm

    Thanks you very much! 🙂

  1. October 2, 2010 at 10:01 am
  2. October 3, 2012 at 6:00 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: