git-merge-repo(1)

git-merge-repo1

Merge two repo histories

Usage

git-merge-repo <repo> <branch> <directory> [--squash]

Overview

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.

Examples

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 [email protected]:tj/git-extras.git master .

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Written by Ivan Malopinsky <[email protected]>

Reporting bugs

<https://github.com/tj/git-extras/issues>

From git-extras 7.3.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.