So you've cloned somebody's repo from github, but now you want to fork it and contribute back.
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
- Off the top of my head *
git remote add my-fork [email protected]
git fetch my-fork
git push my-fork
Otherwise, if you want to follow convention:
git remote rename origin upstream
git remote add origin [email protected]
git fetch origin
git push origin