From 739f1f6984792250dcedb6f558cfa42bd11138b6 Mon Sep 17 00:00:00 2001 From: Starfall Date: Thu, 5 Aug 2021 12:43:24 -0500 Subject: git: add 'rebranch' alias to update main & rebase current branch onto it --- .config/git/config | 1 + 1 file changed, 1 insertion(+) (limited to '.config') diff --git a/.config/git/config b/.config/git/config index f4113d9..fd8b7ff 100644 --- a/.config/git/config +++ b/.config/git/config @@ -18,6 +18,7 @@ clean = !git remote prune origin && git branch | xargs git branch -d force = push --force-with-lease oops = commit --all --amend --no-edit + rebranch = !git checkout main && git pull && git checkout - && git rebase main stashpull = !git stash && git pull && git stash pop stat = status tree = log --all --graph --oneline -- cgit