windows 下使用github

來源:互聯網
上載者:User

原文

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 should 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 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 should have all the repository files now if you did everything correct.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.