Add default-branch alias to git
This commit is contained in:
parent
f0fdbcb23b
commit
4dde4482b0
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
# list aliases
|
# list aliases
|
||||||
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort
|
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort
|
||||||
bdm = "!git branch --merged | grep -v '*' | xargs -n 1 git branch -d"
|
bdm = "!git branch --merged | grep -v '*' | xargs -n 1 git branch -d"
|
||||||
|
default-branch = "!git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4"
|
||||||
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset'
|
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset'
|
||||||
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)' --all
|
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)' --all
|
||||||
lastchange = log -p --follow -n 1
|
lastchange = log -p --follow -n 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue