On my production server I have a deploy script to do a git pull origin master
among other deployment tasks when it receives a github webhook saying there's a new push to master. It works, but it keeps the full history which is just a waste of drive space.
Is there a way to truncate the history to keep only the current version?