Skip to content

Instantly share code, notes, and snippets.

@curtisallen
Created April 18, 2013 00:02
Show Gist options
  • Save curtisallen/5408789 to your computer and use it in GitHub Desktop.
Save curtisallen/5408789 to your computer and use it in GitHub Desktop.
how to add a github remote from an existing git repo
git clone <OPENSHIFT STUFF>
cd <OPENSHFIT REPO DIR>
git remote add github -m master https://github.com/curtisallen/<reponame>.git
git pull -s recursive -X theirs github master
@curtisallen
Copy link
Author

then you can do

git push origin master
git push github master

@newmanw
Copy link

newmanw commented Apr 19, 2013

$ git pull -s recursive -X theirs github master

fatal: Couldn't find remote ref master
Unexpected end of command stream

What is this command supposed to do???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment