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.

  • Installing Subversion JavaHL library in Mac OS X
  • Subclipse: Could not generate DH keypair
  • Eclipse VisualSVN error svn E175002: java.lang.NumberFormatException
  • git-upload-pack not found while adding new repository to Eclipse Git
  • How to create a patch in IntelliJ IDEA?
  • Private Key authentication failed error in Eclipse for openshift
  • 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?

  • Forking on Google Code (or any other SVN hosting)
  • git submodules are ruining my day
  • Is it possible to keep an unversioned file in a git repository
  • How to recover a dropped stash in Git?
  • git push after deleting few files
  • Azure Git deploy into site folder not wwwroot
  • One Solution collect form web for “Connecting Eclipse project to new GitHub repo”

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

    enter image description here

    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.

    Git Baby is a git and github fan, let's start git clone.