Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can someone tell me why they decided to have the new branch argument be `-c` in switch when it's `-b` in checkout?


Because c for create makes perfect sense while b does not make sense on a command which only works on branches.


I would guess it is shorthand for —-create. A quick google confirms that (https://git-scm.com/docs/git-switch)


maybe they regret the original `-b` and thought it should be -c for create as well?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: