Merge two git repos into one without renaming files -
i'd merge 2 repos , b common repo c. , b both have lot of files @ root folder level, i'd create folders , b in root folder of repo c, , put content of each original repo in matching folder.
is there without using git mv
in process? problem i'm using xcode unfortunately doesn't follow history of renamed files, i'd avoid moves if possible. in effect, i'd merge each repo directly subfolder.
- subtree merging — simple solution. merge set of files relocating them @ same time under different prefix (a directory). not past history of files.
- the
git-subtree
scriptadd
command. create synthetic history if originating code has been located in specified directory.
Comments
Post a Comment