Last active
September 3, 2020 17:36
-
-
Save nestoralonso/7db196fe41740097ad21176aa83a4cc8 to your computer and use it in GitHub Desktop.
Unused Branches
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
for k in $(git branch -r --merged| sed /\*/d | egrep -v "(^\*|master|dev)"); do | |
if [ -n "$(git log -1 --before='2 weeks ago' -s $k)" ]; then | |
echo $k | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment