bin/git-truncate 33174e010f5c586ecd89ce47067f796b751989f5
#!/bin/bash
# usage: git-truncate refhashtag
git checkout --orphan temp $1
git commit -m "Truncated history"
git rebase --onto temp $1 master
git branch -D temp