Skip to content

Instantly share code, notes, and snippets.

@jwhulette
Created November 23, 2022 17:55
Show Gist options
  • Save jwhulette/ed79e5d50e3ccee23bfff02375f73ecb to your computer and use it in GitHub Desktop.
Save jwhulette/ed79e5d50e3ccee23bfff02375f73ecb to your computer and use it in GitHub Desktop.
[GIT Forget] #git
Add to
~/.gitconfig
[alias]
forget="! /usr/local/bin/git fetch -p && /usr/local/bin/git branch -vv | awk '/: gone]/{print $1}' | xargs /usr/local/bin/git branch -D"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment