Eclipse4.4 Device Egit Plugin submit local project code to remote repository

Source: Internet
Author: User

First, equipment egitOpen Eclipse's marketplace. Enter Egit in the search box, you can see that Eclipse4.4 has been installed by default Egit, of course, if there is a new version of the Egit announced, you can click on the update on the updated on the right, but also can click Uninstall Uninstall the PluginSecond, configure GitOn projects in Eclipse, right-click to select Team->share Project
After you have configured the path to the local warehouse, for example, after you see the click Finish, you can see very many question marks on the item, which means the file is in the untracked state. Not submitted, this time can be found in the Eclipse workspace, the original project directory is missing, the entire project files are transferred to the warehouse set above, a new warehouse in GitHub, the name does not matter, can and local projects can also be different, Then right-click on the project in Eclipse and select Team->commit. When all is selected, the Commitbutton is available, click "Commit" to submit the code to the local local repository and note that it is not submitted to the remote repository on GitHub. The question mark icon on the item disappears and becomes the shape of the small bucket.iii. configuring SSH for Eclipsewindow->preference - General -Network Connection -SSH2 -Key Management -generate RSA Key ... -Apply -Save private key ... and then add id_rsa.pub content to GitHub (GitHub settings has ssh keys->add ssh key-> the id_rsa.pub content in the key. Title random)!

Note To restart eclipse after the configuration is complete.

Four, Push this time the project right click->team->remote->push, this will appear such as the following interface. Go to GitHub, open your new warehouse, copy the HTTPS address, and then fill in the URI. User will fill in your Githubusername,password is your password after clicking Next. will appear in ref to select Master. Then click on the back of AddButton. Then click Next to do so. At this point, the Confirm interface will appear, click Finishbutton, the project will be pushed to GitHub on the remote warehouse, smooth, very quickly finished. This is the time to assume that you encounter rejected interface. The instructions haven't been configured yet, so let's say you point Team->remote->push. No matter how the match is not successful, no fast farward or the like, meaning should be first pull from GitHub, and then push. When you pull, you will immediately prompt a variety of not configured well. This can be done as follows: Point Window->preference->team->git->configuration->repository Settings, Repository Select the local repository that you created, and then click Open on the right to change the contents of the config file to

[Core]
Symlinks = False
repositoryformatversion = 0
FileMode = False
Logallrefupdates = True
Bare = False
IgnoreCase = True
Hidedotfiles = dotgitonly
[remote "origin"]
URL =[email protected]: Shijiebei2009/documentmatching.git

Fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
Remote = origin
Merge = Refs/heads/master
[User]
Name = shijiebei2009
email =[email protected]
The URL address in this is the SSH address on GitHub.Five, pull first, then pushand then another push will be successful!

Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.

Eclipse4.4 Device Egit Plugin submit local project code to remote repository

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.