Created
February 10, 2023 01:21
-
-
Save rkdgusrnrlrl/d851937f336a86f2f0b1ff9355a8cbac to your computer and use it in GitHub Desktop.
This file contains 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 refs/heads/ --count=10 --format='%(refname:short)' --sort=committerdate | grep users | |
echo "delete that branches(y/n): " | |
read name | |
if [ $name == 'y' ]; then | |
git for-each-ref refs/heads/ --count=10 --format='%(refname:short)' --sort=committerdate | grep users | xargs git branch -D | |
echo "deleted branches" | |
else | |
echo "cencel delete branches" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment