Created
May 14, 2021 05:58
-
-
Save cacapon/5fa770bb6799c6eba7a0451024a0196a to your computer and use it in GitHub Desktop.
マージ済みのgitのブランチを削除するコマンド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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