MyEclipse 8.5 consolidates git and publishes the project on GitHub

Source: Internet
Author: User

We want to be part of a team in our spare time to do something that is meaningful to you, and that's what GitHub is prepared for. But we have to learn from the usual SVN.

Tools/Materials
    • myeclipse8.5

    • GitHub

Method/Step
  1. 1

    Download the Git plugin for Eclipse--egit. Download URL Http://download.eclipse.org/egit/updates-1.3/org.eclipse.egit-updatesite-1.3.0.201202151440-r-site.zip, This is the latest version of the current, if you want to update the release, access to egit download page http://www.eclipse.org/egit/download/can.

  2. 2

    Install plugin: Extract the plugin from the previous step and delete the XML file. Create a new Egit folder under MyEclipse's Dropins directory and put the features, plugins, and two other jar packages that were just unpacked. After restarting MyEclipse, go to window-preferences-team and see the GIT option, which means the installation is successful.

  3. 3

    Download git environment: go to http://help.github.com/win-set-up-git/download git, install it, then use Git Bash. This is going to be used in the back. Enter https://github.com, use your e-mail application account, omit the table. After successful registration, you can create a new project: Click on the new Repositories button on the page to fill in the project name, description and other information. For example, you've built a project called HelloWorld.

  4. 4

    Set up your SSH key information, this step is very important, otherwise the project is not submitted to go up. Open git Bash from your Start menu. At the prompt, enter ssh-keygen-t rsa-c "[Email protected]" Enter, note: Ssh-keygen is written in the middle without spaces. This time the system will prompt you some questions, such as passphrase or something, all the way back to the past on the line. Finally, the system will generate a id_rsa.pub file, which is your SSH key. This file is stored in the C:\Documents and Settings\administrator\.ssh folder by default. Go to the GitHub website, in the Https://github.com/settings/ssh page, click the "ADD ssh KEY" button to copy the contents of the Id_rsa.pub file into the inside, the title can be written in a row. Copy everything in C:\Documents and settings\administrator\.ssh into C:\Documents and settings\administrator\ssh. At this point, SSH key is set up. Create a new project from MyEclipse, for example, you have built a project in the C:\prj folder called HelloWorld

  5. 5

    Here is the prompt to create your own first readme file.

    Open git Bash from your Start menu. Enter the following command in turn

    <pre class= "SQL" name= "code" > $git config--global user.name "your username" NOTE: May not be your Account $git config--global user.em Ail "Your email" NOTE: Registered account $CD C://prj//helloworld Note: Is the project directory you created from MyEclipse $git init $touch README $git Add README $git commit-m ' first commit ' $git remote add [email protected]:< your account >/helloworld.git $g It push–u origin master</pre><br> re></pre>

  6. 6

    If it goes well, you can see the Readme file you uploaded from the GitHub website. If the previous 7th step of SSH key is not set correctly, the above command may prompt permission denied (publickey)

    10, the previous steps are done, the following can enter the MyEclipse, using the Egit plugin for project management. The first thing to note is that MyEclipse's default Internet connection may be incorrect, causing your myeclipse to be unable to connect to the GitHub site, so go to window-preferences-general-network connections first, Set the active provider to direct (default to native).

    11. Right-click on your project name, Team-share project, later steps see http://wenku.baidu.com/view/dfeb0a24af45b307e871978c.html

    12. If you want to import an existing project from GitHub, please refer to http://www.iteye.com/topic/1122423 illustrated in detail

MyEclipse 8.5 consolidates git and publishes the project on GitHub

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.