---
type: snippet
tags: ['git']
status: release
ctime: 2022-11-03
mtime: 2024-03-22
---

```sh
git remote add {alias} {url}
git fetch {alias}
git merge --allow-unrelated-histories {alias}/{branch}
```

---

- [[git] 서로 다른 repository 합치기 — Falcon](https://m-falcon.tistory.com/522)
- [How do you merge two Git repositories? - Stack Overflow](https://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories)
- [How to merge git repositories preserving git history - JDriven Blog](https://blog.jdriven.com/2021/04/how-to-merge-multiple-git-repositories/)
- [Git - git-mv Documentation](https://git-scm.com/docs/git-mv)
- [Merging two GitHub repositories without losing commit history - Mozilla Hacks - the Web developer blog](https://hacks.mozilla.org/2022/08/merging-two-github-repositories-without-losing-commit-history/)
