Why not write a custom bash command?
From my understanding git deletes 'headless' branches, so rather than deleting .git/, you can just delete the branches and start a new branch & head. The old ones should just wither away, along with the data. Git man page says after 30 days it deletes that stuff.
So I actually write quite a few bash scripts, enough where I keep a repo of them. I just was really hoping that git, has a native command.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.