Skip to content

Instantly share code, notes, and snippets.

@dechowdev
Last active February 9, 2017 11:59
Show Gist options
  • Save dechowdev/12e201091687c506ea0c33ec31240805 to your computer and use it in GitHub Desktop.
Save dechowdev/12e201091687c506ea0c33ec31240805 to your computer and use it in GitHub Desktop.
Aliases - I use daily these...
alias glog="git log --format='%Cgreen%h%Creset %C(cyan)%an%Creset - %s' --graph"
alias s="~/Sites/"
alias glean='git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d'
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
@dechowdev
Copy link
Author

I am thinking about adding this to the list. But I think it would be suitable with a input prompt

git for-each-ref --format="%(refname:short)" refs/heads/3.2\* | xargs git branch -D

Seen in: http://stackoverflow.com/questions/3670355/can-you-delete-multiple-branches-in-one-command-with-git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment