From ec61fdb044d882a33660bf5501895e8e9f9beb2c Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Mon, 20 Jan 2025 18:49:54 +0200 Subject: [PATCH] git: add alias for fast switch to main and master branches --- gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/gitconfig b/gitconfig index f6df810..7e6d36a 100644 --- a/gitconfig +++ b/gitconfig @@ -26,6 +26,7 @@ cm = commit -m sw = switch unfuck = reset HEAD~1 --soft + main = !git switch master 2>/dev/null || git switch main [interactive] diffFilter = delta --color-only