News for hackers. Stuff that matters.
Re:Key Git Concepts Explained the Hard Way by dralley on Wednesday March 14, 2018 @04:48PM (#16588164)
Not to mention that the most common way of creating a branch is by using git checkout, and it also reverts files, and also switches branches, again all based on what flags you feed it
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.