The worst one I\'ve been caught by was with git submodules. I had a submodule for a project on github. The project was unmaintained, and I wanted to submit patches, but co
Create a new branch:
git branch new-branch
Work, commit, work ... Realise all my work is on master, not on the new branch.
I should have done:
git checkout -b new-branch
Why can't I do something like:
git branch -c new-branch
(c for checkout) with an option to make that the default behaviour???