Notes/git

git

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
RSS|

© 2026 Johannes Konings. All rights reserved.