Adds useful Git aliases

This commit is contained in:
William Carroll 2017-05-26 11:24:18 -04:00
parent a35d49f15d
commit f0cd754a10

View file

@ -31,3 +31,9 @@ alias wdirs='dirs | tr " " "\n" | sort -r'
# GitHub integration
alias git=hub
# Git aliases
# List MRU branches
git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"'
# List today's work
git config --global alias.today 'log --since=00:00:00 --all --no-merges --oneline --author="$(git config --get user.email)"'