Development environment
1, jdk:jdk1.8.0_60
2, Eclipse:eclipse-jee-mars-r-win32-x86_64.zip
Configuration steps
1. Configure the local git directory (optional)
Eclipse-jee-mars already has the default integrated egit 4.0,git default repository directory is the c:\users\{user name}\git, we can also be modified to avoid multiple development environment conflicts, where I changed to D:\Eclipse\ Eclipse-jee-mars\git.
2. New Project
Create a Java Project named demo.
3. Share project, create a local git library
On the project, select the right-click menu Teams->share Project ...
The repository here is empty, click the "Create" button to create a new repository
Once the creation is complete, go back to the previous window
Click "Finish" and you have created a local git library, and we'll see the [git master] logo behind the project name.
4. Submit the project to GitHub
In the Project right-click menu, select Team-a Commit
After you enter the submission information, the author, the submitter, and the file to be submitted, select Commit and Push to submit the project to the local library and to the remote library.
Since we did not configure the remote library, the following window will pop up
To fill in this information, we need to implement a remote repository, such as GitHub.
We also created a public library called demo on GitHub.
Then enter the information for the library https://github.com/scaleworld/demo.git and the account number and password.
Next, until finish, you can submit the files and folders included in the demo to GitHub.
We can then refresh GitHub to see the item's information on the page.
So far, we've built a simple github-based development environment in Eclipse.
Reference Resources
1, http://blog.csdn.net/bhq2010/article/details/8581499
2, Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/
Build Eclipse+github development environment