3 ms·
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
by dralley 9y ago
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
- stouset 9y ago`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.