summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-06-04 09:59:29 +0200
committerTobias Klauser <tklauser@distanz.ch>2021-06-04 09:59:29 +0200
commitfcc6abc47a2979f2482e456d64344deee44820b8 (patch)
tree6f6f91c41738e6e979deea323e969240c9cd6e02
parentc3b850c3cb11cbc56230a69565e9e523f503034c (diff)
Add recent aliasHEADmaster
Sorting branches by "last activity". Source: https://twitter.com/tenderlove/status/1392957802163802112
-rw-r--r--.gitconfig1
1 files changed, 1 insertions, 0 deletions
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