From 46864c07aab2aab4cecbd6c2699802411e452049 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 20 Nov 2022 14:15:18 +0100 Subject: [PATCH] git: add gerrit-new convenience alias --- .gitconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitconfig b/.gitconfig index ba93638..d5d82e1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -32,9 +32,9 @@ pullr = pull --rebase sl = branchless smartlog sync = branchless sync -bco = branchless checkout -c = branchless checkout +sw = branchless switch +gerrit-new = !git fetch origin main && git checkout --detach origin/main gerrit-push = !git push origin HEAD:refs/for/main gerrit-push-wip = !git push origin HEAD:refs/for/main%wip gerrit-push-ready = !git push origin HEAD:refs/for/main%ready