Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (12 sloc) 432 Bytes
# strip svk and git-svn noise, retaining tags
git filter-branch --tag-name-filter cat --msg-filter "git svn-abandon-msg-filter" -- --all
# remove the backup refs
git for-each-ref --format='%(refname)' refs/original/ refs/remotes/svn/ | while read ref; do
git update-ref -d "$ref"
# ditch all pre-conversion objects forcefully
git reflog expire --all --expire=now
git gc --aggressive
git prune
git fsck --full