Ángel Ortega III

Un naufragio personal

How to truncate git history

git checkout --orphan temp $1
git commit -m "Truncated history"
git rebase --onto temp $1 master
git branch -D temp
git gc

http://bogdan.org.ua/2011/03/28/how-to-truncate-git-history-sample-script-included.html