How to push an existing Eclipse project to GitHub?
Currently I'm developing some applications that I want to share with the community using GitHub.
I've found a lot of tutorials on how to create a GitHub repository from scratch, but I couldn't find one for sharing an existing Eclipse project. I would prefer a solution that works inside Eclipse using a GUI.
Solution 1:
You can follow this user guide section of git push (to a GitHub repo), adding a remote with the ssh address of your GitHub repo:
See also this tutorial to push your local project to that GitHub repo.
Solution 2:
- Go to github create new repository
- Copy http URL from github
- Go to Eclipse --> Right click on project --> Team--> share project--> Create new Git Repo.
- Go to Git Staging--> add to index --> commit and push
- Right click on Git Repositories push to up stream
- Paste your http URL of githun which you copy in step 2
- Enter username and password of github -- > Finish