Skip to content

Instantly share code, notes, and snippets.

@pablodgonzalez
Last active October 21, 2015 14:54
Show Gist options
  • Save pablodgonzalez/b6c9d209353b8a5a9903 to your computer and use it in GitHub Desktop.
Save pablodgonzalez/b6c9d209353b8a5a9903 to your computer and use it in GitHub Desktop.
git utils
git filter-branch --prune-empty --subdirectory-filter sources/dir/ master
git checkout origin
git merge -s ours destiny
git checkout destiny
git merge origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment