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

> 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: