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