From e8bd1b70cdea91bc82a3f4199a80a8e7a8996c5c Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 13 Jan 2023 09:52:40 -0800 Subject: [PATCH] Update git com alias to checkout main instead of master --- git/.config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/.config/git/config b/git/.config/git/config index 6d52f29..35ada5b 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -30,7 +30,7 @@ dmcw = diff master --color-words p = !git fetch --all sup = submodule update - com = checkout master + com = "!bash -c 'if [[ $(git rev-parse --verify main 2>/dev/null) ]] ; then git checkout main ; else git checkout master ; fi'" cod = checkout develop pod = push origin develop file = show --pretty="format:" --name-only