Skip to content

Instantly share code, notes, and snippets.

@tmbtech
Last active August 29, 2015 14:26
Show Gist options
  • Save tmbtech/3e20e4ee1ffe3f8349c7 to your computer and use it in GitHub Desktop.
Save tmbtech/3e20e4ee1ffe3f8349c7 to your computer and use it in GitHub Desktop.
Scripts to run Gridiron stuff
# 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