Answers for "git clear local branch list"

0

git clean local branches

git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
Posted by: Guest on June-01-2021
0

git clear local branch list

$ git branch -r --merged | egrep -v "(^\*|master|dev)" | xargs -n 1 git push --delete origin
Posted by: Guest on June-07-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language