git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q. regarding subtree merge
@ 2008-04-18  9:36 Stefan Näwe
  2008-04-18 10:02 ` Santi Béjar
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Näwe @ 2008-04-18  9:36 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-18 13:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-18  9:36 Q. regarding subtree merge Stefan Näwe
2008-04-18 10:02 ` Santi Béjar
2008-04-18 10:09   ` Santi Béjar
2008-04-18 12:18     ` Stefan Näwe
2008-04-18 12:59       ` Santi Béjar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).