From 7bf4ea47fd85840984c4d4af48f9145089b35e99 Mon Sep 17 00:00:00 2001 From: Mateusz Kaczmarek Date: Wed, 8 Oct 2014 08:12:14 +0200 Subject: [PATCH 1/2] Add lasttag and checkoutlasttag command The first command will print newest tag name. The second one will checkout that tag. --- config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config b/config index 88d85c5..8cfd485 100644 --- a/config +++ b/config @@ -47,6 +47,8 @@ showtags = show-ref --tags pushtags = push --tags tagwithdate = !sh -c 'git tag "$0"_$(date "+%y-%m-%d_%H-%M-%S")' + lasttag = describe --abbrev=0 --tags + checkoutlasttag = !sh -c 'git checkout `git describe --abbrev=0 --tags`' #better versions purr = pull --rebase From 2b1bbe39cbc72b3f729b3acb511074fd1df63a14 Mon Sep 17 00:00:00 2001 From: Mateusz Kaczmarek Date: Wed, 8 Oct 2014 08:18:15 +0200 Subject: [PATCH 2/2] Better default config for checked out remote branches --- config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config b/config index 8cfd485..ff12193 100644 --- a/config +++ b/config @@ -1,3 +1,9 @@ +[branch] + autosetupmerge = true + +[push] + default = tracking + [color] ui = auto [color "branch"]