Bind local git repository to remote
For some project, you may use local git repo created with git init.
Then if you want, you may create a repository in GitHub/Bitbucket/etc and use it for push or pull.
To do this:
1. Add an origin: sh git remote add origin [email protected]:owner/reponame.git
2. Push: git push origin master
3. Set up branch master to track remote branch master from origin.
sh git branch --set-upstream-to=origin/master master