Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chronial
on Feb 16, 2024
|
parent
|
context
|
favorite
| on:
Popular Git config options
> One repo uses `master` but a subtree uses `main`. If you make a mistake and checkout `main` you end up clobbering your whole working tree with the subtree.
If you replace checkout with switch/restore, that foot gun goes away.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If you replace checkout with switch/restore, that foot gun goes away.