From 493922317302f58ff78f291ca8f23c03b3e86d68 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 6 Oct 2016 13:49:04 +0300 Subject: [PATCH] .gitconfig: add lasttag and lasttagged aliases --- .gitconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitconfig b/.gitconfig index f8d7c44..61b2d13 100644 --- a/.gitconfig +++ b/.gitconfig @@ -101,6 +101,13 @@ add-global-alias = "!exec git add-alias --global" add-local-alias = "!exec git add-alias --local" + # Last tag in the current branch + lasttag = describe --tags --abbrev=0 + + # Latest annotated tag in all branches + lasttagged = !git describe --tags `git rev-list --tags --max-count=1` + + # List all tags tags = tag --list -n1 # Find text in any commit ever -- 2.39.5