MyEclipse plug-in GitHub installation uses the network to introduce a heap of heap, but they try to find a lot of problems, do a tutorial.
Outline
1.git Client Installation
2.SSH Configuration
3.egit installation Configuration
4. References
Ps: In order to increase the fun, the article does not follow the outline of the description, if you are anxious to build egit, please try to configure according to the outline sequence, you can avoid detours
Installation of 1.egit
Of course, you can also choose to search in Eclipse marketplace
An experienced friend would have thought it would be possible to implement the plugin installation via link, as if this were not
Another explanation is that if you use: http://download.eclipse.org/egit/updates. To install, make sure your eclipse version is up-to-date or the installation fails
Low version eclipse installation Egit Plugin
My eclipse is 3.6 version, just can't use the above method, the processing methods are as follows
Open Http://wiki.eclipse.org/EGit/FAQ#Where_can_I_find_older_releases_of_EGit.3F
Select http://download.eclipse.org/egit/updates-1.3 (Because this version is published in the same time as the Eclipse3.6 release time, other versions of the same test)
Next in the end is OK.
Second, the configuration Egit
The premise here is that you must have a GIT client installed on your computer first.
Installation Address: Http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git
After installation, open eclipse
Select the installation path for the GIT client, then configure user settings user and email in the configuration
This username must be a github user, not yet registered, click here to apply https://github.com/
To this end, the configuration of the plug-in
Very excited to start creating a demo try
File > Team > Share Project Choose Git
When you select Git here, you will be prompted to set the home environment variable
Hom-->%userprofile%
Then you create a warehouse.
Third, upload the project
First you need to login to GitHub
Create an empty warehouse
Click Create a new repository
Because I've created a gitdemo, I'm not going to show
Click Upload
Tip exception caught during execution of ls-remote command
Discover that there is no private key.
Here's a brief explanation of how the Egit works.
In fact, a friend familiar with CVS or SVN must know that when we click Commit, the version manager will update the content we have modified in sync.
But Egit is not so smart, in fact, Git has a concept of a local repository, which means that when we commit, we put the updated content information
Sync to the local repository and click Push to submit updates from the local repository to GitHub
Local warehouse path Window-->show view-->other-->git repositories
Said more, I do not know everyone has the impression that the earliest configuration egit user settings when the name of users, no password
passwords aren ' t very secure, you already know this. If you use one of that's easy to remember, it's easier to guess or brute-force (try many options until one works). If you use one of that's random it's hard-to-remember, and thus you ' re more inclined to write the password down. Both of these is Very bad things™. This is what you ' re using SSH keys.
The above paragraph is a github explanation, popular point, GitHub worry that users use too simple password to create security risks, or the password is too complex to create the user can not remember the trouble
So the way to use SSH keys
Four, SSH configuration
How to generate your own SSH Kyes, the operation is as follows
1. Open git Bash
Input ssh-t [email protected]
No RSA files found
then enter
# ssh
-T [email protected]
Prompt does not have permission.
Continue Typing
Ssh-keygen (Always enter)
The above path is not unique, you have to grasp the path before the home configuration
The final Test
Configure SSH2
The simple explanation is that the public key of SSH keys was previously uploaded, and Id_rsa is our private key, so when we upload (push) we only need to
Enter the public account git can
As an example,
After submission, it is push
The UI here is the warehouse address we created earlier on GitHub.
Niext, click Finish to complete the push-to-server operation
To this end, the installation configuration of Egit
Resources:
1.GIT Installation configuration: http://liuzhichao.com/p/624.html
2. How to delete repository (warehouse)
3. Starting the use of EGit: http://wiki.eclipse.org/EGit/User_Guide/Getting_Started
4. More information: http://wiki.eclipse.org/EGit/User_Guide#Github_Tutorial
5.EGit and GitHub simplified release notes: http://gevin.me/182.html
6. About Ssh:https://help.github.com/articles/generating-ssh-keys
7. About Warehouses: https://help.github.com/articles/creating-a-new-repository
Recommend a reference book: Git's Definitive guide
A tutorial on the Internet very hot:
MyEclipse plugin GitHub installation using