Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
LecroJS
· 1y ago · 0 comments
I had this problem too until I forced myself to use the `gcm` alias from oh-my-zsh’s Git plugin. IIRC it checks out to master if it exists, else main. It has almost entirely removed this distinction from my life.
Comments
[–]
weebull
1y ago
I hope you never come across a repo that has an old out-of-date `master` branch, because they moved to using `main` in a bad way.
[–]
Sander_Marechal
1y ago
No problem. The parent had it the wrong way around. OMZ will use main if it exists, master otherwise. So a bad move still works!
[–]
LecroJS
OP
1y ago
Thanks that’s good to know