Update git com alias to checkout main instead of master

main
Buddy Sandidge 2 years ago
parent d4b2682829
commit e8bd1b70cd

@ -30,7 +30,7 @@
dmcw = diff master --color-words dmcw = diff master --color-words
p = !git fetch --all p = !git fetch --all
sup = submodule update 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 cod = checkout develop
pod = push origin develop pod = push origin develop
file = show --pretty="format:" --name-only file = show --pretty="format:" --name-only

Loading…
Cancel
Save