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 / www / tools of the bar in / public / bar>, and the rest of the show < / P>

(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:

  $ fetch $$ git pull -x subtree = public / bar bar  

It tells you that one ton files have been deleted, you can only git rm and then git commit .

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


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -