Skip to content

Instantly share code, notes, and snippets.

@NicolasGeraud
Created March 5, 2015 13:50
Show Gist options
  • Save NicolasGeraud/adfd38607eaa04a51d1d to your computer and use it in GitHub Desktop.
Save NicolasGeraud/adfd38607eaa04a51d1d to your computer and use it in GitHub Desktop.
GIT - faire qu'un repertoire devienne le root
git remote rm origin
# Supprime les tags
for tag in `git tag`; do git tag -d $tag; done
# filtrer les commits n'appartenant qu'au module souhaité
git filter-branch --subdirectory-filter dir1 -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment