Git configuration and installation under Windows

Source: Internet
Author: User
Tags git commands

Git installation diagram under Windows system

In short, Git is a free, open source version control software that is functionally different from the version control software that we are familiar with, such as Subversion (SVN). Due to the needs of the work, the need to install git under the WinXP team to complete the corresponding work, has been used in other systems, and today through the Drupal Garden Dragon Horse Guidance finally installed successfully, specially posted out with the need for children's shoes to share.

get git software:

There are two ways to get Git software, one is on the official website , and the other is available for download here. Just one thing to note is the need to download a version that supports the WinXP system.

git in WinXP installation process

The detailed steps for installing git under WinXP refer to the following installation:

Click on the "Finish" after the installation of Git is complete, after the installation is completed, you need to set the environment variable, the specific steps to change the environment variables can be consulted:

generate SSH Public key

Double-click Git on the desktop to run the program:

To start the Git run program:

In the program, enter:

1, configure email, command as follows:

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

where "your name" is replaced by your name, "[email protected]" replaced by your email address.

2. Generate the public key for identity authentication:

Ssh-keygen.exe-c "[Email protected]"-t RSA

This allows you to get the required public key under your user, and the public key is located under the "id_rsa.pub" file of "C:\Documents and Settings\airen\.ssh" in your computer:

You can see the contents of the public key by opening "Id_rsa.pub" with a text editor:

[Email protected]

Just put your public key in the service of your project and you can do git-related operations.

More about GIT commands can be found on the website , or click here to see more command operations.

By the way, troubleshoot the Chinese catalog support issue:

1, LS can not display the Chinese catalog

Workaround: Add a line to the Git/etc/git-completion.bash:

Alias ls= ' ls--show-control-chars--color=auto '

2. Git commit cannot submit Chinese comment

Workaround: Modify the corresponding line in the GIT/ETC/INPUTRC:

Set Output-meta on  set Convert-meta off

3. Git log cannot display Chinese comments

Workaround: Add a line to the Git/etc/profile:

Export lesscharset=iso8859

Then there is about git in the WinXP under the introduction of the installation, I hope this can give some friends to bring some help. At the same time more hope that friends pay attention to w3cplus, because only your attention can bring me growth.

Original address: HTTP://WWW.W3CPLUS.COM/NODE/74

Git configuration and installation under Windows

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.