Skip to content

Instantly share code, notes, and snippets.

@RavenHursT
Created March 7, 2014 22:48
Show Gist options
  • Save RavenHursT/9421802 to your computer and use it in GitHub Desktop.
Save RavenHursT/9421802 to your computer and use it in GitHub Desktop.
Trying to merge subtree
$cd /path/to/projectA
$git subtree split --prefix=subDirA/subDirB/ --branch=split-branch
.
.
Created branch 'split-branch'
334e51707eb9115be61f8a5bd731e7093d26742c
$cd /path/to/projectB
$git merge /path/to/projectA split-branch master
fatal: Can merge only exactly one commit into empty head
$git merge /path/to/projectA 334e51707eb9115be61f8a5bd731e7093d26742c master
fatal: Can merge only exactly one commit into empty head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment