Skip to content

Instantly share code, notes, and snippets.

@simbo1905
Created July 2, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simbo1905/4cdc6a4cfe4d140e36222485c17c19a0 to your computer and use it in GitHub Desktop.
Save simbo1905/4cdc6a4cfe4d140e36222485c17c19a0 to your computer and use it in GitHub Desktop.
create a project on one git server with an upstream elsewhere
# If there is a repo in, say Heroku, or say BitBucket, and you want to push to it code from GitHub
git remote add upstream git@github.com:hyperledger/indy-sdk.git
# pull everything from upstream clobbering anything local (assumes you start with an empty repo)
git pull -s recursive -X theirs upstream master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment