Setting up the GitHub development environment under eclipse

Source: Internet
Author: User

1. Follow the instructions on GitHub to configure the (http://help.github.com/win-set-up-git/) based git environment.

2. Create a repository on GitHub.

3. Install Egit in the market places through eclipse marketplaces in eclipse.

4. Give the public key in Eclipse and add it to GitHub repository.
In Eclipse through: performance, SSH2, key Management, gernerate RSA key generates the public Key for SSH.
In GitHub, via: Edit your profile, SSH key, add ssh key, adding SSH key, copy the public key generated above to here, save.

The File menu in 5.Eclipse, import, you can import a project just added to Git from git.


6. Modify, and submit. Right-click on the item –>team–>commit. Commit is the GIT repository that commits to the native, and push is synced to GitHub.

Using the Egit plugin in eclipse

Both the local and remote code warehouses are created and configured, and the next step is to use the Egit plugin in eclipse.

If you are not an administrator, you only need to clone or import the GitHub server Remote code repository to local. In the Eclipse right-click menu, import select Git->projects from Git.

Select the URI, which means importing a project from the remote server code warehouse.

Enter [email protected]:tonyguan/hello-android.git] in the URI.

Click Next to have the password verification process.

Enter the password then it is very simple, and then make some choices to import the project.

If you modify the code, the file will be in an uncommitted state.

The file is submitted by selecting the Team->commit Popup Submission dialog box in the right-click menu of the project. In the commit message, enter the comment information for the submission.

Click the Commit button and the file will be submitted.

A successful commit simply means that the changes to the file are saved to the local code repository and not to the remote code repository. Open Eclipse's Perspective window and choose Git Repository exploring.

Then choose Hello-android's Remotes->origin->[email protected]:tonyguan/hello-android.git.

Right-click on the menu push to start pushing local code to the server.

Setting up the GitHub development environment under eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.