Skip to content

Instantly share code, notes, and snippets.

@kakashysen
Last active May 14, 2019 03:19
Show Gist options
  • Select an option

  • Save kakashysen/85726bd1000185c51c9a39c49a187372 to your computer and use it in GitHub Desktop.

Select an option

Save kakashysen/85726bd1000185c51c9a39c49a187372 to your computer and use it in GitHub Desktop.
Clean local branches that was deleted from remote repo
git branch -vv | grep 'origin/.*: gone]' | 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