2 ms·
It can create a branch with -b, based on a branch of your choice (not necessarily current). I constantly use this, having created an alias: [some other bran
by nine_k 3y ago
It can create a branch with -b, based on a branch of your choice (not necessarily current).
I constantly use this, having created an alias:
[some other branch]$ git cob feature/foo123 main
- scubbo 3y agoEh, I can squint and see that as a special-case of moving your head to another ref - the `-b` merely flagging "if this branch doesn't exist, create it instead of erroring".