Adds useful Git aliases
This commit is contained in:
parent
a35d49f15d
commit
f0cd754a10
1 changed files with 6 additions and 0 deletions
|
@ -31,3 +31,9 @@ alias wdirs='dirs | tr " " "\n" | sort -r'
|
||||||
# GitHub integration
|
# GitHub integration
|
||||||
alias git=hub
|
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)"'
|
||||||
|
|
Loading…
Reference in a new issue