diff --git a/Commands.md b/Commands.md index 91d574e63..50db3f94f 100644 --- a/Commands.md +++ b/Commands.md @@ -40,6 +40,7 @@ - [`git pr`](#git-pr) - [`git root`](#git-root) - [`git delta`](#git-delta) + - [`git merge-repo`](#git-merge-repo) ## git extras @@ -826,4 +827,20 @@ $ git add Makefile $ git delta Makefile README.md -``` \ No newline at end of file +``` + +## git merge-repo + +Merges two repository histories. + +```bash +$ git merge-repo other-repo.git master new_dir +``` + +The above merges `other-repo.git`'s `master` branch into the current repository's `new_dir` directory. + +```bash +$ git merge-repo git@github.com:tj/git-extras.git master . +``` + +The above merges a remote repo's `master` branch into the current repository's directory, not preserving history. \ No newline at end of file