Mark's Blog About Search Activity

git add remote

A 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
If you liked this post, you can share it with your followers or follow me on Twitter!
comments powered by Disqus