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