mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
git: add alias for fast switch to main and master branches
This commit is contained in:
parent
26b81143a7
commit
ec61fdb044
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue