git add remote
10 Jul 2012A few times I’ve cloned a github repo and while local started tinkering. Now, I want to save my changes, but I can’t push them up to origin. So, first I fork the repo and add my fork as a remote. I can now push my changes up there.
git remote add [name] [uri]
e.g.
git remote add github git@github.com:digger69/pusher-phonegap-android.git
Then do this to pull down the branches from the new remote
git fetch
And you can now push here
git push github master