GIT-MERGE-REPO(1)
π git-merge-repo(1) β the Git Extras era π
okay so bestie, welcome to git-merge-repo, part of Git Extras β¨ this one merges two whole repo histories together and it's genuinely iconic, no cap π«Ά
πΈ NAME πΈ
git-merge-repo β Merge two repo histories π
β¨ SYNOPSIS β¨
git-merge-repo <repo> <branch> <directory> [--squash]
like. that's the whole vibe. three args, one optional flag, we move π¦
π DESCRIPTION π
So what it does: it merges a repository's history with the current repository, and it does it inside a directory you specify. that's the main character energy right there π
The optional --squash flag is lowkey the "no thoughts just vibes" mode β it skips the full history and generates only one commit for the merge. one. single. commit. periodt. π
heads up bestie, --squash is optional, so if you don't pass it you get the whole full history, not the condensed one π
π EXAMPLES π
okay watch this, merging a local repo's frontend branch into the current repo's web folder:
$ git merge-repo ../app/.git frontend web
and here's merging a remote repo's master branch into the current repo's folder β note the . for the directory, she's saying "right here thanks":
$ git merge-repo git@github.com:tj/git-extras.git master .
both of these? ate. π₯
π AUTHOR π
Written by Ivan Malopinsky <hello@imsky.co> β thank u for ur service king π«‘
π REPORTING BUGS π
found something cursed? tell the girlies here, fr fr:
<https://github.com/tj/git-extras/issues>
π SEE ALSO π
<https://github.com/tj/git-extras>
iykyk π«
mwah π that's the page, babes β this is git-merge-repo from Git Extras, dated May 2026. go merge something slay β¨π¦
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms