Last active
February 5, 2019 16:37
-
-
Save anapaulagomes/1ab870933af20afe52de2e1f738afe0e to your computer and use it in GitHub Desktop.
Generate list of old branches with command to delete them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git for-each-ref | |
--sort=-committerdate refs/heads/ | |
--format='git branch -D %(color:yellow)%(refname:short)%(color:reset) # (%(color:green)%(committerdate:relative)%(color:reset))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment