1. 安装git
    1. git程序下载地址(windows版本):http://git-scm.com/download/win
  2. 配置git:Now that you have Git installed, it's time to configure your settings. To do this you need to open Git Bash (not the Windows command line).----https://help.github.com/articles/set-up-git
    1. 打开终端,这里不是windows的cmd,而是git的bash
      1. github使用初阶_github

        Technorati 标签: ,
    2. username:First you need to tell git your name, so that it can properly label the commits you make.

      github使用初阶_git_02

    3. email:Git also saves your email address into the commits you make. We use the email address to associate your commits with your GitHub account.

      github使用初阶_git_03

    4. Password caching:The last option we need to set will tell git that you don't want to type your username and password every time you talk to a remote server. To do this, you need download the Windows Credential Store helper:       When download completed:Unzip the file and run the git-credential-winstore.exe program inside. This will start up the helper and update your git config to use it.                                                                note: the credential helper only works when you clone an HTTPS repo URL. If you use the SSH repo URL instead, SSH keys are used for authentication
    5. Generating SSH Keys:We use SSH keys to establish a secure connection between your computer and GitHub. Setting them up is fairly easy, but does involve a number of steps.
      1. Generate a new SSH keygithub使用初阶_git_04

        按下Enter

      2. enter passphrase

        github使用初阶_github_05

      3. Add your SSH key to GitHub

        Run the following code to copy the key to your clipboard.

        github使用初阶_github_06
      4. Test everything out

        github使用初阶_github_07

    6. 使用git