Skip to content

Instantly share code, notes, and snippets.

@book000
Created April 13, 2022 08:19
Show Gist options
  • Save book000/5e2cae76f0265de1e38c88484d7ac3d9 to your computer and use it in GitHub Desktop.
Save book000/5e2cae76f0265de1e38c88484d7ac3d9 to your computer and use it in GitHub Desktop.
マージ済みローカルブランチを削除する (WSL利用)
@echo off
git fetch --all
git checkout master
git fetch --prune
bash -c "git branch --merged | egrep -v '\*|develop|main|master'| xargs git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment