git: add alias for fast switch to main and master branches

This commit is contained in:
Oleksandr Smirnov 2025-01-20 18:49:54 +02:00
parent 26b81143a7
commit ec61fdb044
No known key found for this signature in database

View file

@ -26,6 +26,7 @@
cm = commit -m cm = commit -m
sw = switch sw = switch
unfuck = reset HEAD~1 --soft unfuck = reset HEAD~1 --soft
main = !git switch master 2>/dev/null || git switch main
[interactive] [interactive]
diffFilter = delta --color-only diffFilter = delta --color-only