Skip to content

Instantly share code, notes, and snippets.

@nektro
Created May 16, 2024 21:08
Show Gist options
  • Save nektro/c1409d0f1798b538d96e9f84ebba250c to your computer and use it in GitHub Desktop.
Save nektro/c1409d0f1798b538d96e9f84ebba250c to your computer and use it in GitHub Desktop.
git-deleteallotherbranches() {
git branch | grep -v $(git branch --show-current) | xargs -L1 git branch -D
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment