I rarely create branches off of anything but master
in my daily workflow (maybe an occasionally bug fix on a release branch, etc...). With rebasing and merge squashing you can end up with a left over branch you really don't want to start a new branch from accidentally or you'll be stuck cleaning up a merge mess when you try to merge the new one into master
(not realizing you didn't branch initially off of master
).
I'd like a little warning when I create a new branch if the current working branch isn't master
, like "Warning: Hey, you're not branching off master--think about it!"
What the best way to add this type of simple message?