Win8 git uses ssh password-free upload to GitHub

Source: Internet
Author: User

Front: In the WIN8 system, use Tortoisegit to manage git

Steps:

1 . Set the user name and email for git:

Command: (Please run git bash.vbs (git install directory))

git config--global user.name "Xuhaiyan"
git config--global user.email "[Email protected]"
Operation Tortoisegit:
Tortoisegit---Settings--and Git---userinfo name and email fill in the appropriate information,

2. Run git Bash, generate SSH

Command: (Please enter your own e-mail address)

  Ssh-keygen-t rsa-c "[Email protected]"

Please enter three spaces in a row

3, configuration tortoisegit,tortoisegit default is Support putty, does not support SSH, if need to support SSH, change the configuration:

  Tortoisegit---Settings, Network---SSH client

This path defaults to: Your tortoisegit installation directory \bin\tortoisegitplink.exe needs to be changed to:

  Your git installation directory \bin\ssh.exe


4. Add the id_rsa.pub content of the directory under your username \.ssh to your GitHub account C:\Users\

5. "url =" in config under ". Git" folder under your Git project, set the SSH address to your project.

  




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.