git: can I subtree merge just a subpath of a repository? -
I have Remotes Foo and Bar Fu is a web application that has many directories, related to / public
which contains mixed files and other directories.
The front end of the bar libraries, such as, should go to / public / bar>
FU. Foo does not have any files.
This will be a piece of cake in which the subdomules or subtree merge will be. However ...
Bar tree is a mess, it has all pre-production files like PDS and FLA, and its only useful part is its / www / tools
.
So, what do I want to do, merge into the (I think it is very similar to how you have merged with a project that basically merge into your sub-section. , Do not know.) I have successfully done this using the following commands (for your scenario Is rewritten). $ / G> $ git Remote Bar / path / to / bar $ git merge -s our - no-commit bar / master $ git read-tree - prefix = public / bar-u bar / master: Www / tools / Great Warning! I'm still in the process of understanding how to fetch / merge from the bar, it will bring all this in one go. The way to change my existing merger is like this: It tells you that one ton files have been deleted, you can only I am certainly open to suggesting suggestions for pulling changes. Since this is an old thread, I should add that I am running Git 1.7 9 / www / tools
of the bar in / public / bar>, and the rest of the show < / P>
$ fetch $$ git pull -x subtree = public / bar bar
git rm
and then git commit
.
Comments
Post a Comment