zoukankan      html  css  js  c++  java
  • windows 下使用github

    原文

    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

    Adjust the PATH environment
     

    Choose the SSH executable

    Choose the SSH executable
     

    Choose line endings

    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

    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.

    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.

    Add the key 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'.

    Create repository here

     

    Now go to the repository settings...

    Now go to the repository settings...
     

    ... and set your full name and email that your using at github.

    ... and set your full name and email that your using at github.
     

    Add a new origin

    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.

    Pulling for the first time

    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.

  • 相关阅读:
    Keil C 里面Lib库文件的生成与调用
    关于在 KEIL C51 中嵌入汇编以及C51与A51间的相互调用
    点阵字库的生产原理(转)
    研华的数字输入/输出模块
    EQueue
    WIFI机器人网
    低成本自制航模电子设备系列(转)
    128階數的Shunt音量控制器
    LM3886-SVO純直流功率放大器
    强悍高效率 92% Nixie Tube 升压电路 12V升150-250V(转)
  • 原文地址:https://www.cnblogs.com/wangkangluo1/p/2977955.html
Copyright © 2011-2022 走看看