Eclipse or STS basic operation on GitHub
A GitHub Upload Code
1. Start by creating a new Maven or other Java project.
Then change the local default git store address.
The above GIT project storage address according to their own needs, location arbitrary storage. Right-click on the item and follow the instructions shown
Two Now the above operation is to build a git repository, the following start uploading code to GitHub for hosting
But before this, the reader needs to register a github account (many online tutorials, I do not elaborate here)
1. Right-click on the project and select Team->commit
Classpath and project are best not to tick next right click on Project, select Team
Fill in the Git address, user name and password
Here is the git address, paste it over to
The above code is submitted to the Master trunk, and the next thing to say is how to commit the code to the branch
Note: The above commit is committed to the master trunk, if you need to commit the code to the branch you have established. Do the following:
Three Submit code to Branch
1. First create a new branch on remote GitHub
2. First submit the project to the local, which has said.
3. New branch Dev, note that this branch is remotely present.
4. You can then submit the code to the branch.
Submit Success