feat(GitAliases): add lastref command
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
filelog = log -u
|
||||
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) [%an]%Creset' --abbrev-commit --date=relative
|
||||
last = log -p --max-count=1 --word-diff
|
||||
lastref = rev-parse --short HEAD
|
||||
lasttag = describe --tags --abbrev=0
|
||||
pick = add -p
|
||||
remotes = remote -v show
|
||||
|
@@ -16,6 +16,7 @@ try {
|
||||
git config --global alias.filelog 'log -u'
|
||||
git config --global alias.hist "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) [%an]%Creset' --abbrev-commit --date=relative"
|
||||
git config --global alias.last 'log -p --max-count=1 --word-diff'
|
||||
git config --global alias.lastref 'rev-parse --short HEAD'
|
||||
git config --global alias.lasttag 'describe --tags --abbrev=0'
|
||||
git config --global alias.pick 'add -p'
|
||||
git config --global alias.remotes 'remote -v show'
|
||||
|
Reference in New Issue
Block a user