GIT-MERGE-REPO(1) | Git Extras | GIT-MERGE-REPO(1) |
git-merge-repo - Merge two repo histories
git-merge-repo <repo> <branch> <directory> [--squash]
Merges a repository's history with the current repository, inside a specified directory.
Optional --squash flag skips the full history and generates only one commit for the merge.
Merges a local repo's frontend branch into the current repo's web folder:
$ git merge-repo ../app/.git frontend web
Merges a remote repo's master branch into the current repo's folder:
$ git merge-repo git@github.com:tj/git-extras.git master .
Written by Ivan Malopinsky <hello@imsky.co>
<https://github.com/tj/git-extras/issues>
<https://github.com/tj/git-extras>
October 2022 |