Skip to content

Instantly share code, notes, and snippets.

@cacapon
Created May 14, 2021 05:58
Show Gist options
  • Save cacapon/5fa770bb6799c6eba7a0451024a0196a to your computer and use it in GitHub Desktop.
Save cacapon/5fa770bb6799c6eba7a0451024a0196a to your computer and use it in GitHub Desktop.
マージ済みのgitのブランチを削除するコマンド
function git-clean() {
git checkout master;
git pull origin master;
git fetch;
git remote prune origin;
git branch | grep feature | xargs git branch -d;
}
alias git-clean=git-clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment