I am working in git-flow based environment. We (along with team) decided not to remove remote branches for some time. How can I remove all feature branches from my remote that have no commits for last X days. I guess it can be some oneliner?
According to: How can I get a list of git branches, ordered by most recent commit? I can get branches sorted by last commit date.
And here: How to clone all remote branches in Git? I can clone all remote branches.
Can I avoid pulling all remote branches for such cleanup?