Eclipse git consolidation

Source: Internet
Author: User

Recent friends have recommended using GitHub to manage their own projects, and free users can have 5 warehouses, just as I want to learn about git and take this opportunity to learn.
The GitHub official Guide uses standalone third-party git tools for versioning, not eclipse, but I think eclipse must have plugins to solve this kind of problem, just like subclipse.

Installing Egit

Egit is now the best git tool on eclipse, and if you're using Eclipse Indigo, you can just click Help->eclipse Marketplace and find "Egit" on the Search tab. Locate and then install directly.

If you are not using Indigo, you can download it from here.

GitHub

You need to register an ID on GitHub and create a repository on it. If you have any questions, please click here.

SSH key generation

Repository you need to submit your SSH key after you create it. In general, there are two ways to generate key:

    1. Use the official guide provided by the Msysgit tool to generate the Ssh-keygen command.
    2. Generated using the SSH2 tool that comes with eclipse.

Here we use the second approach, using the SSH2 tool that comes with eclipse, in the following steps:

      1. If your SSH2 already has the ID key you need to use, back it up and empty the directory.
      2. Click Window->preferences->general->network->ssh2, click Key Management tab, click Generate RSA Key, then click Save Private Key to save the key to the custom directory.

      1. Click Export Via SFTP, fill in the popup window [email protected], at this time your SSH directory will have a known_hosts file, this file is as important as id_rsa.pub.

    1. Open the generated id_rsa.pub, delete the contents of the empty line copy, and paste it into the SSH keys in GitHub.
    2. Restart Eclipse to see if the SSH tab can load out RSA key and known hosts, or you won't be able to connect to GitHub if you can't check the above steps.
Push configuration
      1. Create an app, then right-->team->share Project on the app, choose Git, click Next, click Use or create repository in parent folder, ignore the warning above, Direct finish.
      2. Create a Readme in the app root, write the content casually, then right-->team->commit, but the file is still on your local and not push to the remote server.
      3. Then right click->team->remote->push, here Fill in your project address, agreement, fill out after clicking Next, if appear ssh://[email protected]:22 the authenticity of host " Github.com "can ' t be established. Error message for RSA key Please restart Eclipse and continue this step after reboot.
      4. If there is no exception, click on the Add all Branches spec button in the pop-up window, click Finish, the whole process is complete, click on GitHub your homepage to see your code.

Reprint http://www.pigg.co/eclipse-and-github.html?replytocom=2

Eclipse git consolidation

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.