git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* subtree merging fails
@ 2017-02-07  8:16 Stavros Liaskos
  2017-02-07 14:59 ` Samuel Lijin
  0 siblings, 1 reply; 6+ messages in thread
From: Stavros Liaskos @ 2017-02-07  8:16 UTC (permalink / raw)
  To: git

Following the instructions here:
https://git-scm.com/book/en/v1/Git-Tools-Subtree-Merging
will lead to an error.

In particular, if the subtree is merged and then updated, this command
that is supposed to update the local subtree fails with a fatal:
refusing to merge unrelated histories error.

$ git merge --squash -s subtree --no-commit rack_branch

A workaround could be using the --allow-unrelated-histories option

$ git merge --squash --allow-unrelated-histories -s subtree
--no-commit rack_branch

But this completely destroys my project by pushing the subtree
contents into a completely irrelevant directory in my project (no in
the subtree).

Any ideas??

https://github.com/git/git-scm.com/issues/896#issuecomment-277587626

^ permalink raw reply	[flat|nested] 6+ messages in thread
* subtree merging fails
@ 2017-02-06  8:48 Stavros Liaskos
  2017-02-06 17:08 ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: Stavros Liaskos @ 2017-02-06  8:48 UTC (permalink / raw)
  To: git

Hi,

Please check this issue for a description of the bug:
https://github.com/git/git-scm.com/issues/896#issuecomment-277587626

Regards,

Stavros

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

end of thread, other threads:[~2017-02-08 10:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07  8:16 subtree merging fails Stavros Liaskos
2017-02-07 14:59 ` Samuel Lijin
2017-02-07 18:44   ` David Aguilar
2017-02-08 10:42     ` Stavros Liaskos
  -- strict thread matches above, loose matches on Subject: below --
2017-02-06  8:48 Stavros Liaskos
2017-02-06 17:08 ` Johannes Schindelin

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).