Skip to content

Instantly share code, notes, and snippets.

View ansman's full-sized avatar

Nicklas Ansman ansman

View GitHub Profile
@ansman
ansman / git-purge-branches.sh
Created June 10, 2013 12:10
Shell function to remove fully merged git branches
function git-purge-branches {
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if ! [ "$CURRENT_BRANCH" = 'master' ]; then
echo 'Please stash your work and checkout master'
return
fi
git fetch -p
@ansman
ansman / brew-config.log
Created August 3, 2012 20:08
Homebrew issue #13845
HOMEBREW_VERSION: 0.9.2
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8-x86_64
Xcode: 4.4
CLT: 4.4.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: N/A