From fcc6abc47a2979f2482e456d64344deee44820b8 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 4 Jun 2021 09:59:29 +0200 Subject: Add recent alias Sorting branches by "last activity". Source: https://twitter.com/tenderlove/status/1392957802163802112 --- .gitconfig | 1 + 1 file changed, 1 insertion(+) (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig index e904118..66de865 100644 --- a/.gitconfig +++ b/.gitconfig @@ -24,6 +24,7 @@ ls = ls-files pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" pushf = push --force-with-lease + recent = branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\" ri = rebase --interactive --autosquash s = status -s st = status -- cgit v1.2.3-54-g00ecf