Skip to content

Instantly share code, notes, and snippets.

@NicolasGeraud
Created March 5, 2015 13:48
Show Gist options
  • Save NicolasGeraud/ac8f317f2004a0082437 to your computer and use it in GitHub Desktop.
Save NicolasGeraud/ac8f317f2004a0082437 to your computer and use it in GitHub Desktop.
GIT - isoler des répertoires et leur historique
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 -f --prune-empty --index-filter \
'git rm --cached -r -q -- . ; git reset -q $GIT_COMMIT -- dir1 dir2 dir3' -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment