简体   繁体   中英

Connecting Eclipse project to new GitHub repo

I have been coding up a new project for several weeks and finally decided to put it up on GitHub. So I installed Git ( sudo apt-get install git ), created an account on GitHub, and then created a new repository with the same name as my Eclipse project. I'm now trying to add my existing Eclipse project to Git version control, and connect it to my GitHub repository.

I ran git init /home/myuser/sandbox/workspace/MyApp .

How do I now connect it to my HitHub repo, so that when I git push some changes, I'll be able to login to GitHub and see them?

The simplest (and probably the best) method to install EGit plugin, and then either import from local repository or from github

在此输入图像描述

If you already have eclipse project you can just 'right click' on it and 'share'. After select provider (git) just add your github repo url and have fun.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM