github使用初阶

  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. 78442279

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

      77244129

    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.

      77287372

    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 key77665690

        按下Enter

      2. enter passphrase

        77790569

      3. Add your SSH key to GitHub

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

        78139527
      4. Test everything out

        78314966

    6. 使用git

你可能感兴趣的:(github,git)