Back to notes
Jun 18, 2024
1 min read

git

delete all local branches, which not exist remotely

git fetch --prune && git branch -vv \
| grep ': gone]' \
| awk '{print $1}' \
| xargs -r git branch -D