1. Register your GitHub account
Sign up for one of your own accounts on GitHub.
2. Install the Git plugin egit
To install the Git plugin egit in Eclipse, the installation method can refer to this article:
Http://www.cnblogs.com/machanghai/p/4945991.html
3. Create a GitHub training class library
First, use Eclipse's own tools to generate the key that GitHub needs, window->preference, and then do the following:
About the Application key reference this post: http://blog.csdn.net/chinaonlyqiu/article/details/8826767
Then start versioning by using the Egit plug-in, such as:
Where the URL column is filled in: To import the Spring-security project as an example, find this item in GitHub: Https://github.com/spring-projects/spring-security, such as:
Then copy the path and you're ready.
The values for host and repository are automatically taken out and then entered with a hit next.
Enter the branch selection, where the master is selected
Select next to configure the local project storage path.
After finish, choose Java Project (choose according to your own needs, or it can be Java EE Web project, etc.). Such as:
4. The repository is from the remote Clone (clone) to the local. Let's test the use of Egit to submit our revised code and files, the following steps.
1) Create a new file under SRC;
2) Right-click Project->team->commit;
3) After commit, start right-click Project->team->remote->push;
Some of the actions in this step, perhaps the novice friends do not quite understand, you can go to see http://blog.csdn.net/chinaonlyqiu/article/details/8826767 related introduction.
6. We understand the initial use of this egit. this way, we can use egit like SVN, which is convenient.
Reference article:
1.http://www.xuebuyuan.com/446322.html
2.http://blog.csdn.net/chinaonlyqiu/article/details/8826767
3.http://yufenfei.iteye.com/blog/1750124
4.http://m.blog.csdn.net/blog/get_set/38238197
5.http://blog.csdn.net/hil2000/article/details/8566456
Import the project source from GitHub into eclipse