Skip to main content

Posts

Showing posts from May, 2011

Cloning an Existing Git Repository

After installing the freshcopy of ubuntu 11.04, I need to clone my already existing github repository to my local drive to start gitting. Following are the steps, I had done to Clone the Existing git repository and start Gitting. 1 . Generate SSH keys for the repository. I tried to use already existing key in the github repo but I end up with an error. So created a new keygen by ravikumar@ravikumar-desktop:~$ssh-keygen -t rsa -C "XXXX@gmail.com" 2. Copy the Newly generated SSH key. ravikumar@ravikumar-desktop:~$ cd .ssh ravikumar@ravikumar-desktop:~/.ssh$ gedit id_rsa.pub copy the entire key. 3. Now Login to your Github account and Goto the Repository's administration and goto ' Deploy keys' ,  click Edit and paste the new key. 4.  Now Goto following repository's page and copy the url as highlighted below: Github url    5. Clone the repo to your Local drive: ravikumar@ravikumar-desktop:~$ git clone git@github.com:XXXX/codehacks.git Cl