Hacker News new | past | comments | ask | show | jobs | submit login

> For convenience, it will also update the HEAD ref if you check out the full contents of a branch.

Not quite accurate. From the root of the repo, `git checkout foo -- .` will checkout the entire contents of the branch without updating HEAD.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: