git merge 는 공통 조상이 없는 히스토리를 기본으로 거부한다 — --allow-unrelated-histories 가 그 안전장치를 끈다.1
git remote add {alias} {url}
git fetch {alias}
git merge --allow-unrelated-histories {alias}/{branch}
- [git] 서로 다른 repository 합치기 — Falcon
- How do you merge two Git repositories? - Stack Overflow
- How to merge git repositories preserving git history - JDriven Blog
- Git - git-mv Documentation
- Merging two GitHub repositories without losing commit history - Mozilla Hacks - the Web developer blog
Footnotes
-
Git - git-merge Documentation: “By default, git merge command refuses to merge histories that do not share a common ancestor. This option can be used to override this safety when merging histories of two projects that started their lives independently.” ↩