Typically once I've noticed I haven't branched is after I've already added and committed.
Then just create the branch where you are, and afterwards go back and reset the original branch
Re:Lesser known Git commands
by convolvatron on Friday September 30, 2016 @02:31PM
(#12614302)
and make sure to patch up the upstream reference
In this case, simply create the branch and switch to it (git checkout -b branchname) and you're good. It's like it never happened ;) (remember that branches are just labels - until you commit it doesn't really matter).