-
Split directory in a branch in source repository
git subtree split -P <name-of-folder> -b <name-of-new-branch>
-
Add remote of source in destination repository and fetch
git remote add -f <source> <source-repository>
-
Merge splitted branch into destination without a new commit
git merge -s ours --no-commit <name-of-source-branch>
-
Import tree into new path
git read-tree --prefix=<new-path> -u <name-of-source-branch>
-
Commit merge
git commit
Created
April 13, 2015 15:34
-
-
Save xphere/368d29c79df2c844b39f to your computer and use it in GitHub Desktop.
Instructions for splitting a directory in a repo and merge into another one
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wee!