3 ms·
Is it just me or did http://ohshitgit.com/#accidental-commit-master http://ohshitgit.com/#accidental-commit-master forget to checkout master before calling rese
by zellyn 9y ago
Is it just me or did http://ohshitgit.com/#accidental-commit-master http://ohshitgit.com/#accidental-commit-master forget to checkout master before calling reset?
- throwanem 9y agoCreating a branch doesn't check it out by default. To do both at once, it's either "checkout -b" or "branch -c", I forget which because it's "b c" in Magit.
- zellyn 9y agoAh, I figured I was missing something.
- XaspR8d 9y agoIt's still on master because `git branch` just creates and doesn't do checkout. (Which is why I've almost exclusively switched to `git checkout -b <newbranch>` for creating. How often do I want to create but not switch to the branch?)