Skip to content

Instantly share code, notes, and snippets.

@wonderer80
Created February 7, 2019 05:36
Show Gist options
  • Save wonderer80/3aae1c76fc3668d862d4218b0710c449 to your computer and use it in GitHub Desktop.
Save wonderer80/3aae1c76fc3668d862d4218b0710c449 to your computer and use it in GitHub Desktop.
리모트에 없는 로컬 브랜치 정리하기
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment