Skip to content

Instantly share code, notes, and snippets.

@Carlos-Augusto
Created August 19, 2021 10:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Carlos-Augusto/1b72416b70ed6ab1957e78c94a754f91 to your computer and use it in GitHub Desktop.
Save Carlos-Augusto/1b72416b70ed6ab1957e78c94a754f91 to your computer and use it in GitHub Desktop.
#The following commands helps cleaning a git repo when there are many pr that are done.
git pull --all
for gone in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -D $gone; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment