Connecting the Eclipse project to the new GitHub repo

I programmed a new project for several weeks and finally decided to put it 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. Now I am trying to add an existing Eclipse project to a 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 repository, so that when I git push some changes, I can go into GitHub and see them?

+4
source share
1 answer

The easiest (and probably best) way to install the EGit plugin and then either import from the local repository or from github

enter image description here

If you already have an eclipse project, you can simply right-click on it and "share." After choosing a provider (git), just add the github repository url and have fun.

+10
source

All Articles