Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To use, copy these into `~/.gitconfig` or another configuration file location.
- # `git purge` deletes all fully-merged branches.
- # `git aliases` lists your git aliases.
- # `git today`, `git yesterday`, and `git friday` help remind you what you've done lately.
- # Thanks to Roberto Bonvallet at Coderwall, and commenter takhion, for the inspiration here.
- [alias]
- purge = !git branch --merged | egrep -v \"(^\\*|master|develop)\" | xargs git branch -d
- aliases = config --get-regexp alias
- today = !git log --graph --all --since=midnight --author=\"$(git config user.name)\" --oneline
- yesterday = !git log --graph --all --since=yesterday.midnight --until=midnight --author=\"$(git config user.name)\" --oneline
- friday = !git log --graph --all --since=3days.midnight --until=midnight --author=\"$(git config user.name)\" --oneline
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement