git installation and configuration process on Win7
Document name |
git installation and configuration process on Win7 |
Creation time |
2012/8/20 |
Modification time |
2012/8/20 |
Create person |
Baifx |
Introduction (Harvest) |
1, Install the msysgit step on the Win7; 2, Install the tortoisegit step on the Win7; 3 . Integration of git methods and procedures in VS2010. |
Reference source |
Configuration and use of Git Http://wenku.baidu.com/view/929d7b4e2e3f5727a5e962a8.html |
First, installation instructions
1, git in windows platform.
Git is linux kernel. At present git can already be used in windows, main methods are two: msysgit and cygwin. cygwin and windows version of git provides a friendly gui (Graphical interface ), soon after installation, here we mainly discuss based on msysgit
Tortoisegit isTortoiseSVN'sgit version,Tortoisegit for MigrationTortoiseSVN toTortoisegit. has always beenGit iswindows platform did not use gui client, now tortoisegit to windows developers bring the gospel. We will be in 64 win7 operating system installed gitgui interface, you need to install msysGit< Span style= "color:red;" > and tortoisegit
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 Span style= "FONT-FAMILY:CALIBRI;" > is required by Tortoisegit
- you do not need to download the whole Msysgit development package, The "Full Installer-official Git for Windows" msysgit 1.7.10+ is Recommended for Tortoisegit 1.7.9+ (msysgit 1.7.10 adds utf-8 support and are compatible to *nix git)
- minimum compatible version is 1.6.1 (for Tortoisegit < 1.7.9-should use Msysgit 1.7.6)
Installation
Just Download the setup package for your system and install it. If you are running a, the "need to download" and "Install the" the "a", "version:the" shell extension is included in the 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 isn't recommended (no utf-8 and Separate-git-dir support).
Upgrade
Before upgrading you should read the releasenotes.
Just Download the setup package for your system and install it. The old version would be replaced automatically.
If you were upgrading from 1.7.3.0 or older and you had installed the 32-bit version on a 64-bit system you had to Deinst All 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 is trying to install the 64-bit version of Tortoisegit on a normal 32-bit operating system. You need to download with the correct MSI file for your OS. For normal 32-bit OS, make sure the MSI filename does not has "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 look for the corresponding installation package to download, as follows.
Second, 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
This download version--Git-1.7.11-preview20120710.exe
Full installer for official Git for Windows 1.7.11
Featured Beta
Third, the installation process
Installation order: Install Msysgit First, then install Tortoisegit.
1, install msysgit.
A, after the installation package download is complete, double-click into the installation interface, such as:
B, two step next after selecting the installation directory, such as:
C,next enter the Git Install module selection, default, such as:
D,next enter the Git Setup interface, "Select Start Menu Folder", default, such as:
E,Next enter the Git Setup interface, "adjusting your PATH environment", select the default value "useGit Bash only" as shown:
F,next enter the Git Setup interface, "Configuring the line ending Conversions", select the newline format, select "Checkout As-is, Commit Unix-style line Endings ", as shown:
G,Next enter the installation interface to complete the installation, as shown in:
This time is ready to useGitThe open git bash can enter linux shell git command to perform various operations, as everyone is accustomed to using the graphical interface of the tortoisesvn, the following describes the use of tortoisesvn tortoisegit , > Everyone should be more easy to use.
2, install tortoisegit.
A, double-click the installer, enter the installation interface as shown below:
B, two step next into the "Choose SSH Client" Select interface, select "OpenSSH,Git default SSH client" as shown in:
C,next enter the "Custom Setup" interface, select the default value, as shown in:
D,next, go to the "Ready to Install" interface, select the "Install" button to start the installation process, complete the installation. As shown in the following:
E, to this point,tortoisegit installation is complete. Right-click on the left-hand side of the desktop and the Tortoisegit shortcut will be added to the right-click menu , as shown in:
F, select "Settings", go to "settings-tortoisegit" interface, select "General" tab, set the Git path of this machine as shown in:
G, select the "Network" tab and set the ssh path. SSH is installed by default when you install git, as shown in the path. As shown in the following:
H, select the "Git" tab and set the username, mailbox and key. As shown in the following:
Note: If you are temporarily working locally, you simply add the username and mailbox, and "Signing key" is automatically generated.
At this point, thetortoisegit setup is complete.
3, download the code.
A, right-click on the desktop blank, choose git clone to add the repository address URL and local folder. As shown in the following:
Click OK to download a new version of the library.
Not finished, to be continued.
Iv. Integration of Git in VS2010 .
1. To use Git directly in Visual Studio (to integrate Git into VS), you need to install the plugin git Source Control Provider, as follows:
Http://visualstudiogallery.msdn.microsoft.com/63a7e40d-4d71-4fbb-a23b-d262124b8f4c
You can also download the installation through Visual Studio2010. Method: In the VS menu, click on "Tools" extension Manager, go to "Extension Manager" interface. In the upper right corner of the search box directly into the "git" search, the first item is "Git Source Control Provider", and then click "Download", download completed directly after installation, after installation restart VS2010 can. As shown in the following:
2, the installation process. Double-click "gitsccprovider.vsix" to enter the installation screen. As shown in the following:
By default, the version of Visual Studio you are installing is checked . Click the "Install" button to start the installation. After the installation is complete, close any open instances of Visual Studio, and then reopen them for the changes to take effect, as prompted.
3 . Use Git directly in the Visual studio instance .
Not finished, to be continued.
From:http://blog.chinaunix.net/uid-25806493-id-3319781.html
Git installation and configuration process on Win7