From 54fd28a37e5a20690ec6b1d22a7957cf4c87bdfa Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 24 Jan 2023 16:16:09 +0100 Subject: [PATCH] git: add rank alias --- .gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitconfig b/.gitconfig index f462b58..c4f38c9 100644 --- a/.gitconfig +++ b/.gitconfig @@ -40,6 +40,7 @@ cleanbr = remote prune origin cleanbrshow = remote prune origin --dry-run cleanupbr = "!git branch --merged | grep -v '\\*\\|master\\|develop\\|dev' | xargs -n 1 git branch -d" + # Remove local branch that have been removed on the server cleanupbrprune = "!git fetch --prune" contains = !sh -c 'git branch -a --contains $1' - wdiff = diff --word-diff=color --unified=1 @@ -68,6 +69,7 @@ ri = "rebase -i --autostash --autosquash" up = pull --rebase --autostash rebaseour = "rebase -Xours" + rank = "shortlog -s -n --no-merges" [rebase] # when rebasing, update the other common branch too. # See https://andrewlock.net/working-with-stacked-branches-in-git-is-easier-with-update-refs/