Created
December 7, 2016 15:35
-
-
Save alexbartsch/0b30e8c835e1c6de876af6ab767ddabb to your computer and use it in GitHub Desktop.
Script for deleting local and remote branch
This file contains hidden or 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
#!/bin/bash | |
git branch -d $1 | |
git push origin :$1 | |
git remote update origin --prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment