Add gln alias to git config

This commit is contained in:
xerus2000 2020-06-03 12:31:25 +02:00
parent a2db048e2d
commit 6ece14f3ae
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@
[alias] [alias]
st = status -sb st = status -sb
stv = --paginate status -v stv = --paginate status -v
stvv = --paginate status -vv
ln = !git --no-pager log --pretty=tformat:'%C(auto)%h -%d %s %Cgreen(%cr) %Cblue<%an>%Creset' -5
unstage = reset HEAD -- unstage = reset HEAD --
ready = rebase -i @{u} ready = rebase -i @{u}

View File

@ -10,7 +10,7 @@ alias ghead='git rev-parse --short HEAD'
alias gref='git reflog' alias gref='git reflog'
# Show the 5 most recent commits without pager # Show the 5 most recent commits without pager
alias gln='git --no-pager log --pretty=tformat:"%C(auto)%h -%d %s %Cgreen(%cr) %Cblue<%an>%Creset" -5 "$@"' alias gln='git --no-pager log --pretty=tformat:"%C(auto)%h -%d %s %Cgreen(%cr) %Cblue<%an>%Creset" -5'
# Log local and origin commits side by side - useful to check before forcing an action # Log local and origin commits side by side - useful to check before forcing an action
glno() { glno() {