Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Created May 4, 2018 08:20
Show Gist options
  • Save UlisesGascon/74fa6b2bb60374be53c7db9efad2bf5d to your computer and use it in GitHub Desktop.
Save UlisesGascon/74fa6b2bb60374be53c7db9efad2bf5d to your computer and use it in GitHub Desktop.
From one repo to another organization and several repos....

bring hsitory from another repo

git remote -v
git remote add upstream https://github.com/{ORG}/{REPO}.git
git pull upstream master --allow-unrelated-histories
git add .
git commit -m "Bring all info from single repo"
git push

Branch by branch

git checkout -b {branch}
git pull upstream {branch}
git add .
#fix conflicts
git commit -m "Bring all info from single repo. branch {branch}"
git push    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment