Skip to content

Instantly share code, notes, and snippets.

@teddevaal
Created November 11, 2015 15:08
Show Gist options
  • Save teddevaal/c87017110b9fb28c7425 to your computer and use it in GitHub Desktop.
Save teddevaal/c87017110b9fb28c7425 to your computer and use it in GitHub Desktop.
Fix subtree conflict
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -rf directory/of/subtree' --prune-empty -f HEAD
git subtree add --prefix directory/of/subtree git@github.com:repository.git branch --squash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment