Git installation diagram in git_windows

Source: Internet
Author: User
Tags git commands
Install git in Windows

In simple terms, git is a free and open-source version control software. In terms of functions, it is no different from the version control software like subversion (SVN) that we are familiar. Due to work requirements, you need to install git under WINXP to cooperate with the team to complete the corresponding work. It has been used in other systems for a long time. Today, the installation was successful after being instructed by longma in Drupal garden, share with children's shoes if necessary.

Get git software:

You can obtain the GIT software in two ways: one is obtained on the official website and the other can be downloaded here. Download a version that supports WINXP.

Install git on WINXP

Follow these steps to install git in WINXP:

After you click "finish", the GIT installation is complete. After the installation is complete, you need to set the environment variables. For detailed steps to change the environment variables, refer:

Generate an SSH Public Key

Double-click the GIT running program on the desktop:

Start the GIT running program:

In the program, enter:

1. Configure email with the following command:

   $git config --global user.name "your name"   $git config --global user.email "your@email.address"

Replace "Your name" with your name, and "your@email.address" with your email address.

2. Generate a public key for Identity Authentication:

  ssh-keygen.exe -C "your@email.address" -t rsa

In this way, you can obtain the required public key under your user. The public key is located under the "id_rsa.pub" file "C: \ Documents and Settings \ airen \. Ssh" in your computer:

Open "id_rsa.pub" in the text editor to view the public key content:

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs1c3zL3IbjhMbSCwooZ7WHlkga7xq+5inQUCTqmZ7xqBclvEwofDd4BYts99X+xfNXgGSlil85wrOfXX9ZH27ZmPR3Z8KWp3pekFOvk7iLmt0b9lZqhgpUll76Q7D2KED8se9gV4FNxg05ZK6AUZm70cBj9sZqjV//weE7ufkibcqd3ngHsTKB+0Js8NcMwldHmxIxZEwufxgT/D4EGQCA6ijjuj9ILIydzzLwWzKoH1wuGDU5LAE1qptIpAt50uWxPNlsBPoqZnbJjHg+As9If6tRkG4YzkwzSBTP725bJDcWkArhWRRkJ2cwUgcJYRyCY+8jI2oxDawYjWQ+w9HQ== airenliao@gmail.com

In this case, you only need to put your public key into the service of your project to perform Git-related operations.

For more operations on git commands, goOfficial WebsiteView, or clickHereView More command operations.

Solve the problem of Chinese directory support by the way:

1. ls cannot display Chinese Directories

Work und: add a line in git/etc/git-completion.bash:

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

2. Git commit cannot submit Chinese comments

Solution: Modify the lines in git/etc/inputrc:

  set output-meta on  set convert-meta off 

3. Git log cannot display Chinese comments

Solution: add a line in git/etc/profile:

  export LESSCHARSET=iso8859

At this time, we have introduced how to install git in WINXP. I hope this will help some friends. At the same time, I hope my friends will pay attention to w3cplus, because only your attention can bring me growth.

Address: http://www.w3cplus.com/node/74

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.