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

It'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?)



Git branch is helpful if you just want to make a snapshot before doing something potentially harmful. If you hose up, just checkout that branch again.


Apparently the default behavior is for people who just like to know it's there ;)




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

Search: