Git for Windows tools download and configure

Source: Internet
Author: User
Tags using git

Preface, post on Git tools: http://cn.v2ex.com/t/225027

Finally, a git for Windows tool is selected with the path: https://git-for-windows.github.io/

Install nothing to say, about Git configuration can refer to http://www.cnblogs.com/vitah/p/3612473.html

A summary of the records:

Method One:

To configure the SSH key for GitHub:

(1) Open Git bash to see if an SSH key already exists on your computer:

Input CD ~/.ssh

To create a new SSH key if the file cannot be found as shown;

(2) Create a new SSH key:

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

Execute this command to save the path as a prompt file, you can press ENTER directly,

Then prompt input passphrase (password), enter two times (can not lose directly two times enter),

Then you will produce two files in the. SSH directory: Id_rsa and Id_rsa.pub

Use Notepad to open the. SSH directory under the id_rsa.pub file, copy the contents;

4. Copy ssh key to GitHub:

On the GitHub site click "Account Settings" > click "SSH Keys" > click "Add ssh Key"

Open GitHub website, click on the upper right corner of the wrench icon, and then click on the left side of the menu SSH key, and then the right page of the Add SSH key, paste the copied content into the GitHub key, title can not be filled, directly saved.

5. Test SSH link GitHub:

Input ssh-t [email protected]

appear successfully on OK;

6. Set your own git information:

Input

git config--global user.name "Firstname Lastname" (here name can be modified and not login for GitHub)

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

Set your own Git information to complete setup and setup, and you can enter git config--list to view your git information.

Method Two

Configure Git

Open the Git GUI and first generate an SSH key. Select Show SSH key in Help and click "Generate key" to get the key. Copy it to the Clipboard.

Open GitHub, log in, open the Settings screen, click the "Add SSH Key" button in the SSH keys bar and copy the key generated above.

Now you can start using GIT functionality, and, of course, if you're used to the command line and want to use Git bash, you can right-click Git bash.

Git for Windows tools download and configure

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.