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

One would idiomatically use “git checkout <path-to-file>” for the functionality described by the author: “get some file back to the latest version committed in HEAD”.

Stopped reading after I saw this.



Same. Came here looking for a comment that would point this out and I was not disappointed.

Trying to learn something from a bad article is worse than reading no article at all.




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

Search: