Skip to content

Instantly share code, notes, and snippets.

@wingkwong
Created August 26, 2020 13:40
Show Gist options
  • Save wingkwong/2c4db22c61f235f95ea8c794f98a155c to your computer and use it in GitHub Desktop.
Save wingkwong/2c4db22c61f235f95ea8c794f98a155c to your computer and use it in GitHub Desktop.
Merging other repositories to an existing one
git remote add -f foo https://github.com/wingkwong/foo.git
git remote add -f bar https://github.com/wingkwong/bar.git
git remote add -f baz https://github.com/wingkwong/baz.git
git merge foo/master --allow-unrelated-histories
git merge bar/master --allow-unrelated-histories
git merge baz/master --allow-unrelated-histories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment