Skip to content

Commit 5e495f8

Browse files
ukleinekgitster
authored andcommitted
howto/using-merge-subtree: mention --allow-unrelated-histories
Without passing --allow-unrelated-histories the command sequence fails as intended since commit e379fdf ("merge: refuse to create too cool a merge by default"). To setup a subtree merging unrelated histories is normal, so add the option to the howto document. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cae598d commit 5e495f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/howto/using-merge-subtree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Here is the command sequence you need:
3333

3434
----------------
3535
$ git remote add -f Bproject /path/to/B <1>
36-
$ git merge -s ours --no-commit Bproject/master <2>
36+
$ git merge -s ours --no-commit --allow-unrelated-histories Bproject/master <2>
3737
$ git read-tree --prefix=dir-B/ -u Bproject/master <3>
3838
$ git commit -m "Merge B project as our subdirectory" <4>
3939

0 commit comments

Comments
 (0)