Build a GitHub development environment under eclipse (2)

Source: Internet
Author: User
Tags github ssh key
5. Add the SSH key to your git account. Under eclipse, select window-perferences, select Network Connections-SSH2 in general options, select the key management tab, and select general RSA key, as shown in: add the generated SSH key to the GitHub SSH key. For example, select Save private key in the eclipse diagram above to save the SSH key generated in eclipse. 6. Create a helloboy project under eclipse. Connect to the GitHub account. Create a helloboy project and add a JSP or Java file. Select helloboy, select team-share project, select git in the displayed dialog box, and click "Next ". On the displayed page, select the create button. In the displayed dialog box, replace the upper-case letters in the path with lower-case letters. Otherwise, GitHub may not recognize them. I tried it multiple times and it only works in lower case. Select finish. At this time, some helloboy projects will contain "?" This indicates that these projects are not synchronized with the GitHub local library. Here, select team-commit. In the displayed dialog box, select all files and click commit. In this way Code The repository is submitted to the local repository. 7. Synchronize the local code library with the remote code library under the GIT Resource Directory. Select Team-fetch to retrieve the directory on the GitHub network. As shown in: In the pop-up window, copy the network URI of the project to and select "Next". In the pop-up window, select "add all branches spec" and click "finish. The fetch success dialog box is displayed. Continue to the GIT Resource Directory and select team-merge. Because only after the two are synchronized can the local code be submitted to the network. Select "merge" here ". After the merge operation, the merge success dialog box is displayed. Select the helloboy project and select team-remote-push. the dialog box shown in is displayed. Open the created helloboy library on the GitHub website, select SSH, and copy the URL to the URI shown in the figure above. Select "Next". In the dialog box that appears, select "add all branches spec" and select "Next". The push success dialog box is displayed. At this point, the GitHub environment has been set up successfully. You can repeat the above steps every time you submit code.
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.