HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git merge-repo — Merge two repository histories. Part of `git-extras`. More information: <https://github.com/tj/git-e

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandtwoclimergegit merge-repopartrepositoryhistories

Problem

How to use the git merge-repo command: Merge two repository histories. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-merge-repo>.

Solution

git merge-repo — Merge two repository histories. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-merge-repo>.

Merge a repository's branch into the current repository's directory:
git merge-repo {{path/to/repo}} {{branch_name}} {{path/to/directory}}


Merge a remote repository's branch into the current repository's directory, not preserving history:
git merge-repo {{path/to/remote_repo}} {{branch_name}} .

Code Snippets

Merge a repository's branch into the current repository's directory

git merge-repo {{path/to/repo}} {{branch_name}} {{path/to/directory}}

Merge a remote repository's branch into the current repository's directory, not preserving history

git merge-repo {{path/to/remote_repo}} {{branch_name}} .

Context

tldr-pages: common/git merge-repo

Revisions (0)

No revisions yet.