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