Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
marcinzm
on Aug 1, 2021
|
parent
|
context
|
favorite
| on:
New in Git: switch and restore
Can someone tell me why they decided to have the new branch argument be `-c` in switch when it's `-b` in checkout?
foxpurple
on Aug 1, 2021
|
next
[–]
Because c for create makes perfect sense while b does not make sense on a command which only works on branches.
Someone
on Aug 1, 2021
|
prev
|
next
[–]
I would guess it is shorthand for
—-create
. A quick google confirms that (
https://git-scm.com/docs/git-switch
)
chrisan
on Aug 1, 2021
|
prev
[–]
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: