Skip to content

Instantly share code, notes, and snippets.

@tksugimoto
Created December 16, 2025 02:42
Show Gist options
  • Select an option

  • Save tksugimoto/1b3ceba8aa591b88feb16a1639805e7a to your computer and use it in GitHub Desktop.

Select an option

Save tksugimoto/1b3ceba8aa591b88feb16a1639805e7a to your computer and use it in GitHub Desktop.
[Git] 不要なローカルブランチを削除する
git branch --verbose --verbose | grep ': gone] ' | sed 's/^ *\| *$//' | cut --fields=1 --delimiter=" " | xargs git branch --delete --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment