Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 221 Bytes

git.md

File metadata and controls

3 lines (2 loc) · 221 Bytes

delete local and remote branches which are already merged

git branch --merged main | grep -v '*|main' | xargs -n 1 git push origin --delete && git branch --merged main | grep -v '*|main' | xargs -n 1 git branch -d