Install and configure Git on Win7

Source: Internet
Author: User
Tags git commands tortoisesvn

Document Name

Install and configure Git on Win7

Creation Time

Modification time

Created

Baifx

Introduction (GAINS)

1. Install msysgit on win7;

2. Install TortoiseGit on win7;

3. Integrate the Git method and steps in VS2010.

Reference Source

Configure and use Git

Http://wenku.baidu.com/view/929d7b4e2e3f5727a5e962a8.html

I. Installation instructions

1. Install Git on windows.

Git is an open-source version control software developed by Linux Torvalds to help manage Linux kernel development. Currently, Git can be used in windows by using the following methods: msysgit and Cygwin. Cygwin and Linux are used in a similar way. The Windows version of Git provides a friendly GUI (graphical interface) that can be used quickly after installation. Here we mainly discuss how to install and use Git Based on msysgit.

TortoiseGit is the Git version of TortoiseSVN. TortoiseGit is used to migrate TortoiseSVN to TortoiseGit. Git has never used a GUI client on the Windows platform for a long time. The appearance of TortoiseGit brings great news to Windows developers.We will64BitWin7Install on the Operating SystemGit, And useGUITo installMsysGitAndTortoiseGit.

2. Read TortoiseGit official installation instructions:

Http://code.google.com/p/tortoisegit/wiki/SetupHowTo

System prerequisites

· For the latest version of TortoiseGit Windows XP SP3 or newer is required.

· Admin privileges for the installation

· MsysGit is required by TortoiseGit

· You do not need to download the whole msysGit development package, the "Full installer for official Git for Windows" download package is sufficient

· MsysGit 1.7.10 + is recommended for TortoiseGit 1.7.9 + (msysGit 1.7.10 adds UTF-8 support and is compatible to * nix git)

· Minimum compatible version is 1.6.1 (for TortoiseGit <1.7.9 you shoshould use msysGit 1.7.6)

Installation

Just download the setup package for your system and install it. if you are running a 64 bit system, you do not need to download and install the 32 bit version: The 32 bit shell extension is supported in the 64 bit installer since TortoiseGit 1.7.3.0.

Windows 2000

If you want to use TortoiseGit in a Win2K environment (only 1.6.5 and below support Win2K), please install GDI + before you install TortoiseGit. however, running these old versions is not recommended (no UTF-8 and separate-git-dir support ).

Upgrade

Before upgrading you shoshould read the ReleaseNotes.

Just download the setup package for your system and install it. The old version will be replaced automatically.

If you are upgrading from 1.7.3.0 or older and you have installed the 32-bit version on a 64-bit system you have to deinstall the 32-bit version first.

Common problems (installer aborts with an error message)

"This installation package is not supported by this processor type. Contact your product vendor ."

This means you are trying to install the 64-bit version of TortoiseGit on a normal 32-bit operating system. you need to download and use the correct msi file for your OS. for normal 32-bit OS, make sure the msi filename does not have "64-bit" in it.

"Please wait while the installer finishes determining your disk space requirements ."

Cleanup/empty the temp-directory (e.g. c: \ Users \ <your user> \ AppData \ Local \ Temp, C: \ User and Settings \ <your user> \ Local Settings \ Temp, c: \ Windows \ Temp \).

As described above, we find the corresponding installation package to be downloaded, as shown below.

Ii. Download the installation package

1. TortoiseGit:

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

This download version-TortoiseGit-1.7.12.0-64bit.msi

TortoiseGit 1.7.12.0 64bit

X64 Featured

2. msysgit:

Http://code.google.com/p/msysgit/downloads/list

Download unzip --git-1.7.11-preview20120710.exe this time

Full installer for official Git for Windows 1.7.11

Featured Beta

Iii. Installation Process

Installation sequence: first install msysgit, and then install TortoiseGit.

1. Install msysgit.

A. After the installation package is downloaded, double-click the installation interface, for example:

B. Select the installation directory after two steps, such:

C. Click next to select the Git installation module. The default value is as follows:

D. Click next To Go To The Git setup interface and Select start menu folder. The default value is "Select start menu folder", for example:

E. next, go to the Git Setup interface, "Adjusting your PATH environment", and select the default value "Use Git Bash only", as shown in:

F. Click next To Go To the Git Setup interface, "rolling ing the line ending conversions", select the line feed format, and select "Checkout as-is, commit Unix-style line endings", as shown in:

G. Click next To Go To The installation page and complete the installation, as shown in:

Now you can use git. Open Git Bash and go to linux shell. You can use git commands to perform various operations. As you are used to TortoiseSVN in the graphic interface, the following describes TortoiseGit, a software similar to TortoiseSVN, which has the same usage habits and should be easier to use.

2. Install TortoiseGit.

A. Double-click the installer to go to the installation page, as shown in the following figure:

B. Go to the "Choose SSH Client" selection page in two steps, and select "OpenSSH, Git default SSH Client", as shown in:

C. next, go to the Custom Setup page and select the default value, as shown in:

D. next, go to the "Ready to Install" interface, and select the "Install" button to start the installation process. As shown in:

E. So far, TortoiseGit has been installed. Right-click the blank area on the desktop, and the TortoiseGit shortcut will be added to the right-click menu, as shown in:

F. Select "Settings" to go to the "Settings-TortoiseGit" Page and select the "General" tab to set the git path of the machine, as shown in:

G. Select the "Network" tab and set the SSH path. By default, SSH is installed when Git is installed, as shown in the path shown in. As shown in:

H. Select the "Git" tab and set the user name, email address, and key. As shown in:

Note: If you are currently using it locally, you only need to add the user name and email address, and the "Signing key" is automatically generated.

So far, TortoiseGit settings are complete.

3. Download the code.

A. Right-click the blank area on the desktop and select git clone to add the repository URL and local folder. As shown in:

Click OK to download a new version library.

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.