Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Cloning github repository in windows system

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 811
    Comment on it

    Hi All,

    I needed to clone one of my password protected repository from git into my windows machine. I googled it and found lots of help but I would like to wrap up things in very basic level.

    1: You must have git account and repository which need to clone, should be shared with you. 2: Now download gitbash and install it on your system. After installation you will find gitbash command line short cut in your desktop (Selected during installation). http://git-scm.com/download/win

    3: Now click on gitbash icon and you will find a gitbash command line window. Now use following command to create your public key:

    ssh-keygen -t rsa -C ssh-keygen -t rsa -C "your_git_email"
    

    this will create a public key in your .ssh folder. You can view it from: C:\Users\user_name.ssh for window 7 (accordingly for other os)

    4: Copy content from id_rsa.pub file and then login into your git account. 5: Click on setting icon (top right header) and you will be redirected to a setting page with lots of option. 6: Click on SSH key and then click on "Add SSH Key" button. A form will appear, now paste the content from step 4 and click on "Add Key". 7: now right click on any folder where you want download that repository. You will find git bash option in popup screen. Click on that. 8: A new gitbash window will appear. Just hit following command:

    git clone git@repository_url
    

    repository will be downloaded into you folder.

    9: Now you can commit code using:

    git commit -am "Status message"
    git push
    

    10: Pull code from git:

    git pull
    

    Hope this will help someone.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: