Open oubiwann opened 9 years ago
Use this:
$ git checkout master $ for TAG in `git tag`; do git deltag $TAG; done; $ git ls-files > keep-these.txt $ git filter-branch --force --index-filter \ "git rm --ignore-unmatch --cached -qr . ; \ cat $PWD/keep-these.txt | xargs git reset -q \$GIT_COMMIT --" \ --prune-empty --tag-name-filter cat -- --all
$ rm -rf .git/refs/original/ $ git reflog expire --expire=now --all $ git gc --aggressive --prune=now
Taken from:
This code has been copied here:
It should be removed from the dev-v2 branch. Or maybe even delete that whole branch? Or just keep the glue code around? And the template files.
Use this:
Taken from: