1. At https://github.com new repository
2. New project in eclipse such as: Test project
3. Right-click "Test"->team->share project ...->select a repository type:git
Tick use or create repository in parent folder of Project
Click Create Repository, Finish
The test directory opened in Workspace will find a more. git folder.
4. Right-click on "Test"->team->commit Local commit
5. Then right-click the "Test"->team->remote->push
The URI is the address specified above github:
Username and password are the user name and password for the GitHub site.
5.finish
Source ref Select Refs/heads/master Destination ref is automatically populated, click Add Spec to tick focus update
Start the submission.
6. You can refresh the page to view the submitted code ...
Note: the public key is born in Eclipse and is added to the GitHub repository.
In the menu bar, open window→preference→general→network connection→ssh2→key management→generate RSA Key ... →apply→save private Key ...
The public key that generates SSH is passed in GitHub: Edit your profile, SSH key, add ssh key,
Eclipse Submit Project to GitHub