First install the Git plugin, in Eclispe, Help->install New software.
Enter Address http://download.eclipse.org/egit/updates then the next step, the plugin is installed.
create a project in Eclipse. Then right-click the->team->share project->git->next on the project.
Select Use or create repository in parent folder of project, for example, point finish.
After execution completes, a. Git folder is created in the project folder and the repository is created.
Because there are some files in the project that are not necessarily uploaded, such as the Bin folder, it needs to be set up in the project.
Expand the corresponding project, there is a small arrow to upload to the server directory, in the directory you do not want to upload right-click,
Team->ignoe, the directory will be ignored.
Here's the commit code to this machine. On the project, right-click Team->commit.
Select the file to commit, click Commit, and when finished, the code is uploaded to the local server.
Next, upload the code to GitHub's server. in the command line, go to the project's folder, run
Git remote add Origin https://github.com/SilangQuan/LinearCompiler.git
Execute the git push-f again, after successful execution like this:
Check out the GitHub Project homepage and discover that the files have been uploaded.
After you have modified the project code in Eclipse, you can commit the code by right-clicking Team->push on the project after commit.
After uploading to GitHub, additional members of the team can extract the project through Eclipse->file->import->project from Git->uri.
In team development, it is common to fecth the latest code before the new day starts working.
Directly in the project you want to right-click->team->fetch and then execute->team->merge. The new files on the server will be added.