logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-merge-repo - Merge two repo histories

Author

       Written by Ivan Malopinsky <hello@imsky.co>

Description

       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 git@github.com:tj/git-extras.git master .

Name

git-merge-repo - Merge two repo histories

Reporting Bugs

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

See Also

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

                                                  October 2024                                 GIT-MERGE-REPO(1)

Synopsis

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

See Also