Skip to content

Instantly share code, notes, and snippets.

@haslo
Created January 14, 2016 15:39
Show Gist options
  • Save haslo/a1f013ce387787a04b5f to your computer and use it in GitHub Desktop.
Save haslo/a1f013ce387787a04b5f to your computer and use it in GitHub Desktop.
[alias]
cheat = !git add -A && git commit --amend -C HEAD && git push -f
branchdates = !git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate) %(authorname) %(refname:short)'
deletemerged = !git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d
cleanup = !git checkout master && git pull && git deletemerged && git branch
[log]
decorate = full
[color]
ui = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment