git installation and configuration

Source: Internet
Author: User

First, Introduction

Git is a free, open source distributed version control system for agile and efficient handling of any or small or large project version management.

Git is an open source version control software developed by Linus Torvalds to help manage the development of the Linux kernel. Torvalds started to develop Git as a transitional solution to replace BitKeeper, which was previously the primary source code tool used by Linux kernel developers worldwide. Some in the open source community felt that BitKeeper's license was not appropriate for the open-source community, so Torvalds decided to work on a more flexible version control system. Although Git was originally developed to assist the Linux kernel development process, we have found that Git is also used in many other free software projects. For example, recently migrated to Git, and many freedesktop projects migrated to Git.

Second, installation steps

1. Download resources: Git-1.9.4-preview20140815.exe

http://code.google.com/p/tortoisegit/downloads/list

2. After the installation package is downloaded, double-click to enter the installation interface, such as:

3, two step next after selecting the installation directory, such as:

4, next enter the GIT installation module selection, default, such as:

5, next into the GIT setup interface, "Select Start Menu Folder", the default, such as:

6, Next enter the Git setup interface, "Adjusting your PATH environment", select the default value "use Git from the Windows Command Prompt" as shown in:

7, next into the GIT setup interface, "Configuring the line ending Conversions", select a newline format, select "Checkout as-is, commit unix-style lines endings", As shown in the following:

8. Next enter the installation interface as shown in:

9, after the installation is complete, open git bash can enter the Linux shell, you can use the git command to do a variety of operations.

Third, the configuration steps

1. Install git and open "Git Bash" from the program directory

2. Type the command: ssh-keygen-t rsa-c [email protected]"(Note:[email protected] is a github account)

3, remind you to enter the name of the key, enter: Id_rsa

4, in the directory: C:\Users\ user directory \, will produce two files: Id_rsa and Id_rsa.pub

5., file: Id_rsa and Id_rsa.pub, copy to directory: C:\Users\ user directory \.ssh\ (note: If there is no directory:. SSH, you need to create a new directory)

6, open the Id_rsa.pub file with Notepad, copy the content, on the github.com website to SSH Key Management page, add a new public key, casually take a name, content paste just copied content.

7. Complete configuration

Iv. Common operation

" First commit " Associate to a remote library (once) git remote add origin [email protected]: 274914765/RM  Origin remote to local repository git pull [email protected]:u011640816/-  U Origin Master clone local repository git clone [email protected]:u011640816/--hard SHA

git installation and configuration

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.