Skip to content

Instantly share code, notes, and snippets.

@akshaymankar
Created August 15, 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 akshaymankar/ca5121b5688ab98e0efedb597da0f496 to your computer and use it in GitHub Desktop.
Save akshaymankar/ca5121b5688ab98e0efedb597da0f496 to your computer and use it in GitHub Desktop.
Merge two repositories
git checkout git@github.com:akshaymankar/repo-1
cd repo-1
git remote add repo-2 git@github.com:akshaymankar/repo-2
git fetch repo-2
git merge repo-2/master --allow-unrelated-histories
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment