RSS

Basic steps for git set up

01 Oct

Steps-1:

sudo apt-get install git-core

Steps-2:

git config --global user.name "your git hub username”
git config --global user.email "your git hub email"

Steps-3:

ssh-keygen -t rsa -C "your git hub email"

Steps-4:

ssh-add
It will suggest a default file name id_rsa.pub, accept that
Give a passphrase when it asks one. This will be your passphrase to 
give whenever you commit for first time after starting the machine.

Steps-5:

cd to that file path (cd ~/.ssh) and open that file 
(gedit id_rsa.pub) You will see the ssh key like this,
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvBcneUfRDJm2TYL4MrX9UrBaFus4ebZ
+hvS3SfwIe4Ydn1f8sQ7q4/Hb0l4NB0/yRn3yjJuj5IyFw0QRq1sLUErQAHMKQnJZUO
MsK044MbymF2d6DOExZIvgm4lXxSKeB3JBge+3lPmXatuJbHAQXMDa2kdBRy1ICCbr3
48yZRAAyizEyzSDT3ireFnF5PNxt4E0avx1QrCVZmPX6T6LZ21J5+ObwdvtPomOTOYo
iknrScRrPmTUyG+g6ZdezQhKxOCBd8XKW5NYmcaz4olCVtCwsIuCGpv0Hrh0bpxj14k
Kmv1KVKOA89vuzWtoeGWfZ2xQSSsZhaTTOhrFWV+ImQ== test@test.com

Steps-6:

Login github.com, go to your profile, click Edit your profile, 
then SSH Keys,Give any title and copy paste the ssh key from 
your file, without the email id, that is up to ==
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvBcneUfRDJm2TYL4MrX9UrBaFus4ebZ
+hvS3SfwIe4Ydn1f8sQ7q4/Hb0l4NB0/yRn3yjJuj5IyFw0QRq1sLUErQAHMKQnJZUO
MsK044MbymF2d6DOExZIvgm4lXxSKeB3JBge+3lPmXatuJbHAQXMDa2kdBRy1ICCbr3
48yZRAAyizEyzSDT3ireFnF5PNxt4E0avx1QrCVZmPX6T6LZ21J5+ObwdvtPomOTOYo
iknrScRrPmTUyG+g6ZdezQhKxOCBd8XKW5NYmcaz4olCVtCwsIuCGpv0Hrh0bpxj14k
Kmv1KVKOA89vuzWtoeGWfZ2xQSSsZhaTTOhrFWV+ImQ==

Steps-7: After saving that, come to command line and clone your repository like git clone <repo url> the repo url will be visible when you click the repo link in git hub after logging in.

 
Leave a comment

Posted by on October 1, 2012 in General, Git, Ubuntu

 

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: