pushing to existing repository github code example
Example 1: initialize a repo and push to github
git init
git add -A
git commit -m 'Added my project'
git remote add origin git@github.com:sammy/my-new-project.git
git push -u -f origin master
Example 2: pushing code with another github account
git config --local credential.helper ""
git push origin master