25th June, 2024

My common git commands

Removing old local branches

git branch --no-merged | egrep -v "(^\*|[main]|[develop])" | xargs git branch -d -D
git fetch origin --prune