1GIT-MERGE-REPO(1) Git Extras GIT-MERGE-REPO(1)
2
3
4
6 git-merge-repo - Merge two repo histories
7
9 git-merge-repo <repo> <branch> <directory> [--squash]
10
12 Merges a repository´s history with the current repository, inside a
13 specified directory.
14
15 Optional --squash flag skips the full history and generates only one
16 commit for the merge.
17
19 Merges a local repo´s frontend branch into the current repo´s web
20 folder:
21
22
23
24 $ git merge-repo ../app/.git frontend web
25
26
27
28 Merges a remote repo´s master branch into the current repo´s folder:
29
30
31
32 $ git merge-repo git@github.com:tj/git-extras.git master .
33
34
35
37 Written by Ivan Malopinsky <hello@imsky.co>
38
40 <https://github.com/tj/git-extras/issues>
41
43 <https://github.com/tj/git-extras>
44
45
46
47 October 2017 GIT-MERGE-REPO(1)