瀏覽代碼

~/.gitconfig: Add `git recent-tags` command/shortcut

I use this pretty often to find out the last few releases.
Lu Stadler 7 年之前
父節點
當前提交
2caed77872
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .gitconfig

+ 1 - 0
.gitconfig

@ -12,6 +12,7 @@
12 12
	lol = log --pretty=oneline --abbrev-commit --graph --decorate
13 13
	ba = branch -a
14 14
	praise = blame
15
	recent-tags = ! sh -c 'git tag --sort=-version:refname | head -n5'
15 16
[format]
16 17
	pretty = %C(magenta)%h%Creset %Cgreen[%cr]%Creset (%an) %s
17 18
[color]