Skip to content

Instantly share code, notes, and snippets.

@marydn
Created February 8, 2018 11:23
Show Gist options
  • Save marydn/4185b5916a7890c8d7e543f8584857ad to your computer and use it in GitHub Desktop.
Save marydn/4185b5916a7890c8d7e543f8584857ad to your computer and use it in GitHub Desktop.
GIT aliases
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
count-month = shortlog -sne --since="01 Jan 2018" --before="31 Dec 2018"
yolo = !git add -A && git commit -m \"$(curl -s whatthecommit.com/index.txt)\"
clean-local-branches = branch --merged | egrep -v \"(^\\*|master|dev)\" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment