Transfer from http://blog.csdn.net/u011271894/article/details/48169251
Git is a distributed version Control tool, this article from the introduction of Git, the focus is to introduce the basic git command and usage skills, let you try to use Git, while the original version control tool can have so much impact on development, the article is divided into two parts, The first part introduces some of Git's common commands, which are interspersed with the basic concepts and principles of Git, the second focuses on the use of Git, and finally creates an open source project on the Git hub to open your Git combat journey 1, what Git is
Git's definition of Wikipedia: It's a free, distributed version Control tool, or a source code management tool that emphasizes fast. Git was originally developed by Linus Torvalds to manage the development of the Linux kernel. Each git working directory is a completely separate code base with complete history and version tracking capabilities, independent of the network and hub servers.
The advent of git eases the pressure on many developers and open source projects to manage branch code, and thanks to the good control of the branch, developers are encouraged to contribute to the projects they are interested in. In fact, many open source projects include Linux kernel, Samba, x.org Server, and Ruby on Rails, all of which have transitioned to using Git as their version control tool. For those of us who like to write code, there are two great benefits, we can submit our code and view the code version at any location (on the subway to work), we can open many branches to practice our ideas, and the overhead of merging these branches is almost negligible. 2, the installation of Git
Second, download the installation package
1, tortoisegit download address:
Http://yunpan.cn/cmMpnm8eCwmFs Access Password d932
This download version--tortoisegit-1.8.14.0-32bit.msi
Tortoisegit 1.8.14.0 32bit
2, Msysgit download address:
Http://yunpan.cn/cmMpzyrY5subU Access Password Fdaf
This download version--git-1.8.4-preview20120710.exe
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, as shown below:
B, two step next after selecting the installation directory, as shown below:
C, next into the Git installation module selection, the default, as shown below:
D, next into the GIT setup interface, "Select Start Menu Folder", the default, as shown below:
E, next enter the Git setup interface, "Adjusting your PATH environment", select the default value "use Git Bash only", as shown in the following figure:
F, next enter the GIT setup interface, "Configuring the line ending Conversions", select the newline format, select "Checkout as-is, commit unix-style lines endings", As shown in the following illustration:
G, next enter the installation interface, complete the installation, as shown in the following figure:
Git can be used at this time, open git bash can go into the Linux shell, you can use the git command to do a variety of operations, because everyone is accustomed to using the graphical interface of the TortoiseSVN, the following describes the use of TortoiseSVN similar software Tortoisegit, using the same habits, we 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 the following image:
C, Next enter the "Custom Setup" interface, select the default value, as shown in the following figure:
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 illustration:
E, to this point, tortoisegit installation is complete. Right-click on the left side of the desktop and the Tortoisegit shortcut will be added to the right-click menu, as shown in the following image:
F, select "Settings", Go to "Settings-tortoisegit" interface, select "General" tab, set the Git path of this machine, as shown in the figure below:
G, select the "Network" tab and set the SSH path. SSH is installed by default when you install Git, in the path shown in the following figure. As shown in the following illustration:
H, select the "Git" tab and set the username, mailbox and key. As shown in the following illustration:
Note: If you are temporarily working locally, you simply add the username and mailbox, and "Signing key" is automatically generated.
At this point, the Tortoisegit 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 illustration:
Click OK to download a new version of the library. Three: Eclipse integrated git
1. Integration plug-in
Enter into plugin integration function, write git-http://download.eclipse.org/egit/updates-2.3.1/in input box
Click the Add button and the following dialog box appears
If you cannot click the OK button, or if you are prompted with an error, you can select a lower version from the following to resolve
Click the OK button and the following dialog box appears
Select only two options for Egit, then click Next to wait
Then go to the following page and click Next
The following interface select Accept, click Finish
Start installation
You will then be prompted to restart Eclipse, and the integration can be completed by rebooting
If the installation has not been successful for a long time, click Cancel to repeat the above steps.
2 Using Plugins
A Create a user
Window->preference
Select Team->configurantion
Click the Add Entry button <