Q. regarding subtree merge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

I tried the scenario described in 
$GIT_DIR/Documentation/howto/using-merge-subtree.txt and have some problems 
with it.

My setup:

I use git to track my changes in three different "project directories", lets
say:

...../src_root/libfoo
...../src_root/appbar
...../bin_root/installed

All three git repositories contain a topic branch (lets say 'current-work')
that I want to track. 

Now I want to setup one git repository containing only the three directories
'libfoo', 'appbar', and 'installed' that others can clone easily. Reading the
above howto document, I think this should be possible. 

I do:

  $ mkdir super-prj 
  $ cd super-prj 
  $ git init
  $ git add remote -f libfoo ../path/to/src_root/libfoo

OK. No problem. 

The problem arises after the second step of the howto:

  $ git merge -s ours --no-commit libfoo/current-work

Now, all files of 'libfoo' are in the current directory. This is not what I 
want.

Could someone please tell me what I'm doing wrong?

Thanks

Stefan


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux