Last active
August 29, 2015 14:26
-
-
Save tmbtech/3e20e4ee1ffe3f8349c7 to your computer and use it in GitHub Desktop.
Scripts to run Gridiron stuff
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
# remove all arcpatch-* branches | |
# note that this will checkout all uncommited code | |
# and pull latest from master | |
function gridiron_clean_branches() { | |
git checkout -f | |
git checkout master | |
git for-each-ref --format '%(refname:short)' refs/heads/arcpatch\* | xargs git branch -D | |
git pull | |
} | |
# after adding this to your .bashrc or .profile (bash vs zsh) | |
# don't forget to `source` the new file | |
# `source ~/path/to/.bashrc` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment