Original URL: http://my.oschina.net/songxinqiang/blog/192567
Eclipse and Git have a lot of two tools to use, and there's a egit plugin in eclipse to support using Git in eclipse, but the instructions on the web are simple to use, or they don't say a few specific questions, and this article explains some of the details.
Eclipse Git egit Tab Branch
Catalogue [-]
- First, the agreement
- Second, step
- 1. Prepare the code base
- 2, create a new project for demonstration, in practice can be any project
- 3. Add the project to the local code base
- 4, submit to the Central warehouse
- 5. Label Management
- 6. Branch Management
- Iii. Summary
This article was made a bit rough at the time, it is recommended to read the upgrade version :Eclipse egit Plug-in use--upgrade version
Using Git as a project's code management tool is now getting more and more hot, with a variety of articles, blogs, and discussions on the web, mostly in the command line. There are also a lot of people using eclipse as a development tool, with eclipse and git pointing to a plugin, Egit is officially provided by Eclipse.
I'm not going to talk about moving from other code management tools to Git, and not talking about other Ides turning to eclipse, and it's not about using Eclipse development to use Tortoisegit to take care of code management, it's just about the use of the Egit plugin in eclipse.
First, the agreement
The demo uses an eclipse version of Kepler Sr1,git service for Oschina
Second, step 1, prepare the code base
Create a new code base in Oschina code custodian
Then copy the address,
Then clone the code base in the Git view of Eclipse
2, create a new project for demonstration, in practice can be any project
3. Add the project to the local code base
Choose Git Management
Select Code Library
4, submit to the Central warehouse
Submit locally
Fill in the instructions, select the file
Submit Results
viewing on the server
5. Label Management
The same tag is supported on Git, which can be used to mark more important versions of the codebase and is quite handy.
Fill in the label's description information, select the code version for the label
Push tag to Central server
Select push Tag Information
Push results
On the server view
6. Branch Management
Git also supports branching, and switching between branches is very easy (what is a branch, what branch is doing its own search ha)
New version Branch
Branch Name
The local branch is already in place, and the code that is currently open in the workspace is already on the new branch.
But it's not on the server yet, we need to push it to the server.
Select Push Branch Information
Information to push
Push results
You can already see the new branch information on the server side.
View on server side
Iii. Summary
This article describes the operation of GIT code management with the Egit plug-in from Eclipse, which covers new hosting, push modifications (new managed project submissions), label management, branch management, and the use of a large number of images for beginners to learn to use.
"Go" eclipse in Egit plug-in use