News for hackers. Stuff that matters.
Re:Key Git Concepts Explained the Hard Way by stouset on Thursday March 15, 2018 @12:42AM (#16590439)
`git checkout` has one main responsibility: take stuff from a commit and put it on the filesystem (and put it in the index as well).

All of its functionality is simple variants on that. `-b` is the only real odd man out, and it’s just a shortcut for calling `git branch $branchname` first.

There are no comments on this comment yet.