clean up git log aliases

* remove seldom used `git lg` alias
* update colors/format of `git l` alias
* update zsh alias `glog` to use `git l` instead of its own thing
This commit is contained in:
Nick Nisi
2016-02-03 09:52:59 -06:00
parent 1a1d63222d
commit 0583b0250f
2 changed files with 2 additions and 4 deletions

View File

@@ -18,9 +18,7 @@
ss = status
br = branch -v
l = log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# show a pretty log graph
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
l = log --graph --pretty=format:'%Cred%h%Creset %C(bold blue)%an%C(reset) - %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# show what I did today
day = "!sh -c 'git log --reverse --no-merges --branches=* --date=local --after=\"yesterday 11:59PM\" --author=\"`git config --get user.name`\"'"

View File

@@ -11,7 +11,7 @@ alias gsp='git stash pop'
alias gmv='git mv'
alias grm='git rm'
alias grn='git-rename'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias glog="git l"
# alias git-amend='git commit --amend -C HEAD'
alias git-undo='git reset --soft HEAD~1'