Git has been in great flames lately, and the speed experience and team mode are good. There is a student training project at hand, time tight task heavy, and learning xiaonei management too tight, so want to rely on the Internet distributed development, so think of GitHub.
After a day of debugging, and finally set up the environment, the middle encountered a lot of small details, went a lot of detours, to share, so as to avoid the subsequent re-inverted mistakes.
- Install MyEclipse 8.5, omit no table.
- 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.
- 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.
- 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.
- 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.
- Here is the prompt to create your own first readme file.
- The first few 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).
- Right-click on your project name, Team-share project, later steps see http://wenku.baidu.com/view/dfeb0a24af45b307e871978c.html
- If you want to import an existing project from GitHub, please refer to http://www.iteye.com/topic/1122423 illustrated in detail
Reprint Please specify the source "Http://blog.csdn.net/softwave"