Instead of re-packaging various git commands, I'd like to encourage people to contribute their ideas and skills to the actual git project. Send an email to git@vger.kernel.org, volunteer to help, and ask for advice and direction. Git needs you!
Does this have any advantage over git trim?<p>That's worked really well for me<p><a href="https://github.com/foriequal0/git-trim" rel="nofollow">https://github.com/foriequal0/git-trim</a>
Not so fancy, but a one-liner<p><pre><code> # Remove all local branches for which there is no remote
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D</code></pre>
requires a python installation which brings a lot of stuff and new vulnerabilities... instead, see the other post about contributing straight to the git project