Skip to content

Instantly share code, notes, and snippets.

@malcolmp
Created August 16, 2014 01:10
Show Gist options
  • Select an option

  • Save malcolmp/9def4a9416157c2f9651 to your computer and use it in GitHub Desktop.

Select an option

Save malcolmp/9def4a9416157c2f9651 to your computer and use it in GitHub Desktop.
Git Subtree Split Example
git push <subtree_remote> `git subtree split --prefix <subtree_path> -b <merge_branch>`:<subtree_branch> --force
@malcolmp
Copy link
Copy Markdown
Author

This has issues with the linking of the remote & subtree merging. Instead: add the subtree remote, just split, push to a new branch on the subtree remote, and merge in that repo.
git subtree split --prefix <subtree_path> -b <merge_branch>
ex.
git subtree split --prefix docroot/sites/all/modules/custom/iga_common -b sandbox-split-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment