Adding an existing eclipse project to github

cd to the project directory then execute the following commands

git init
git remote add origin <github repository location>
git config --add branch.master.remote origin
git config --add branch.master.merge refs/heads/master

Leave a comment