Mercurial > hg > config
comparison .gitconfig @ 863:7611b27e7cc3
add an alias for oneline logs
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Thu, 07 Jun 2018 13:49:20 -0700 |
| parents | 66321798ac82 |
| children | 7191914724f0 |
comparison
equal
deleted
inserted
replaced
| 862:e300310bb98c | 863:7611b27e7cc3 |
|---|---|
| 5 email = jeff@leapyear.io | 5 email = jeff@leapyear.io |
| 6 [alias] | 6 [alias] |
| 7 branches = branch -a | 7 branches = branch -a |
| 8 current-branch = rev-parse --abbrev-ref HEAD | 8 current-branch = rev-parse --abbrev-ref HEAD |
| 9 discard = reset HEAD --hard | 9 discard = reset HEAD --hard |
| 10 ll = git log --oneline | |
| 10 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative | 11 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative |
| 11 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff | 12 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff |
| 12 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) | 13 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) |
| 13 root = rev-parse --show-toplevel | 14 root = rev-parse --show-toplevel |
| 14 st = status | 15 st = status |
