Created
March 5, 2015 13:48
-
-
Save NicolasGeraud/ac8f317f2004a0082437 to your computer and use it in GitHub Desktop.
GIT - isoler des répertoires et leur historique
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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