Uploading Java projects to GitHub using eclipse

Source: Internet
Author: User
Tags knowledge base

Uploading Java projects to GitHub using eclipse

1. Login to the GitHub account, create a new repository (creating a Knowledge Base) named: Eclipse_upload

After the creation is complete, jump to the following interface.

Note: The Https://github.com/heyangyi/eclipse_upload.Git address is an address that will be used by the Eclipse upload code to the Knowledge base.

2. Open eclipse to create a javaweb project named: Eclipse_upload_git. Add index.jsp page, add test using Eclipse upload source to GitHub in body section

3. Right-click the project eclipse_upload_git>team>share project...> Select Git>next>

4. Right-click the project eclipse_upload_git>team>commit...>

After commit, it is found that the lower-right corner of the file below the item is marked with a yellow square on the server with a question mark identifier.

5. Right-click the project eclipse_upload_git>team>push...>

Copy the repository address you created in the first step to the URL, enter the user name and password for GitHub, Next

In sourece ref select Master [branch] Destination ref input Refs/heads/master, click Add Spec, click Force Update All Specs>finish

6. Open the GitHub Web page to the Eclipse_upload knowledge base that you just created, and you can see that the project you just created is uploaded to the knowledge base that you created on GitHub.

View the index.jsp file and find the body part inside: Test using Eclipse upload source to GitHub

7. Modify the body part code inside the index.jsp and upload it to the GitHub step, right-click the project eclipse_upload_git>team>commit...> step with the 4th step

8. Right-click on the project Eclipse_upload_git>team>push...> (step with 5th step) and refresh the GitHub webpage after uploading to enter the Eclipse_upload knowledge base that you have just created.

Uploading Java projects to GitHub using 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.