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.

  • git push rejected non-fast-forward
  • How to import GitHub and Bitbucket repositories into Eclipse Mars?
  • EGit Conflict Resolution GUI?
  • Eclipse egit, problems with collaboration & tips
  • “SSL host could not be verified” error
  • Eclipse not respond when try to configure GIT
  • 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?

  • Check if current directory is a Git repository
  • Create string array from git status bash output
  • Migrating from Mercurial to Git
  • What's the correct way to check if it's possible to perform a fast-forward merge with git merge-base?
  • Biggest projects using Git?
  • How to setup post-receive-email Git hook with Gitolite
  • 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.