Getting started with Git and Gitorious
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.
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:
sudo yum install openssh
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:
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
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