Use GitHub in Windows

Source: Internet
Author: User

Original

His is a guide for all the Windows users (not me) out there. it will explain how to work with a GitHub repository under Windows using tortoisegit. let's get started. at this point you shoshould be a collaborator or owner of a GitHub repository. download tortoisegit. install it like any other program. there are no special settings, just keep on clicking 'Next '. now download msysgit. during this installation you have to set some important settings. please be sure that you set them correctly.

Adjust the Path Environment

Choose the SSH executable

Choose line endings

After the successful installation of both programs continue with the generation of private and public ssh-key. To do this you have to start 'putty key generator'-find it in start-programs-tortoisegit

Just click 'generate' and move the mouse

After it's done you see your freshly generated SSH public key. You can define a passphrase at this step, but it isn' t required.

Save the Public and Private Key for later usage.

You can copy the key out of the box and add it to your GitHub account.

Now your ready to create a local repository. Create an empty folder and right-click into it. Choose 'git create repository here '.

Now go to the repository settings...

... And set your full name and email that your using At GitHub.

Here you click 'add new' and paste the GitHub 'your clone url' into the URL field. select the putty private key we created before, too. now we're re ready to pull for the first time. select 'pull 'from the tortoisegit menu.

For 'remote' select the 'origin' we added before. be sure that 'autoload putty key' is checked and for 'remote branch' master' is selected (type it if you can select it ).

Now click OK and we're done. You shoshould have all the repository files now if you did everything correct.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.