Skip to content

Instantly share code, notes, and snippets.

@cauesmelo
Created March 26, 2025 02:24
Show Gist options
  • Select an option

  • Save cauesmelo/e80bdb0004041eeb4428dd7033c68ec3 to your computer and use it in GitHub Desktop.

Select an option

Save cauesmelo/e80bdb0004041eeb4428dd7033c68ec3 to your computer and use it in GitHub Desktop.
Git interactive remove branches
git config --global alias.rmb '!f() { \
branch=$(git branch | sed "s/^[*[:space:]]*//" | fzf); \
git branch -d "$branch"; \
}; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment