Windows git client and GitHub settings

Source: Internet
Author: User
Tags git client


First step: Install Git for Windows

    • Msysgit is a Windows version of Git, downloaded from https://git-for-windows.github.io/, and then installed by default.

    • Download Link: https://github.com/git-for-windows/git/releases/latest

    • Then the various next steps are recommended using the default options.

    • When the installation is complete, find Git Bash in the Start menu, and you can open the command window to show that the GIT installation was successful!


Step two: Set up a git client

1. Start a Git Bash window first (non-Windows users open the terminal directly). Set up your username and email to tell someone who you are!

git config--global user.name "Your name" git config--global user.email "[Email protected]"

2. Production key pair: Note the operation in Git bash.

2.1. Implementation:

CD ~/.ssh

If you return "... No such file or directory ", stating that no SSH key has been generated, go directly to the 3rd step to produce a new key. Otherwise go to the 2nd step backup!
2.2. If you have already generated it, you need to make a backup:

mkdir key_backup MV id_isa* key_backup

2.3. Generate a new key: (Replace the contents of the quotation marks with your own mailbox)

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

Direct enter, do not modify the default road strength.

Enter passphrase (empty for no passphrase): Enter same passphrase again:

Set a passphrase and ask for the passphrase before each remote operation! Busy trouble can be directly enter, not set.

Step Three: Submit the public key on GitHub:

    1. Locate the. SSH folder, open the "id_rsa.pub" file with a text editor, copy the contents to the Clipboard

    2. Open Https://github.com/settings/ssh, click the Add SSH Key button, paste in to save.


Windows git client and GitHub settings

Related Article

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.