Update Git aliases
This commit is contained in:
parent
16d501bbcc
commit
9f5e2575ae
|
@ -13,19 +13,21 @@
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
excludesfile = ~/.gitignore_global
|
excludesfile = ~/.gitignore_global
|
||||||
pager = less -SRFX
|
pager = less -SRFX
|
||||||
|
sshCommand = ssh -q
|
||||||
[alias]
|
[alias]
|
||||||
lg1 = 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)'
|
lg1 = 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)'
|
||||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
|
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
|
||||||
lg = !"git lg1"
|
lg = !"git lg1"
|
||||||
lgd = log -p --decorate
|
lgd = log -p --decorate
|
||||||
history = log --pretty=oneline --abbrev-commit --all --graph --decorate
|
history = log --pretty=oneline --abbrev-commit --all --graph --decorate
|
||||||
tidy = remote prune origin
|
tidy = !git remote prune origin && git fetch -p && git branch -vv | awk '/: gone]/ {print $1}' | xargs git branch -D
|
||||||
update = !git pull && git tidy
|
update = !git pull && git tidy
|
||||||
st = status
|
st = status
|
||||||
ci = commit
|
ci = commit
|
||||||
co = checkout
|
co = checkout
|
||||||
cp = cherry-pick --ff
|
cp = cherry-pick --ff
|
||||||
br = branch
|
br = branch
|
||||||
|
up = !git update
|
||||||
ref = for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' --sort=committerdate
|
ref = for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' --sort=committerdate
|
||||||
rl = reflog --date=iso
|
rl = reflog --date=iso
|
||||||
tags = tag --sort=taggerdate
|
tags = tag --sort=taggerdate
|
||||||
|
|
Loading…
Reference in a new issue