Import the project source from GitHub into eclipse

Source: Internet
Author: User

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

Related Article

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.