Skip to content

Instantly share code, notes, and snippets.

@oshiro-kazuma
Created June 30, 2016 02:35
Show Gist options
  • Save oshiro-kazuma/995d8fcff7cd0dcbdad8fb49406b3d05 to your computer and use it in GitHub Desktop.
Save oshiro-kazuma/995d8fcff7cd0dcbdad8fb49406b3d05 to your computer and use it in GitHub Desktop.
マージ済みのbranchを削除
cat << 'EOF' >> ~/.gitconfig
[alias]
delete-merged-branch = "!f () { git checkout $1; git branch --merged|egrep -v '\\*|develop|master'|xargs git branch -d; };f"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment