When using GIT i normally create feature branches off an updated master branch then once i have completed work i merge the feature branch back in to the remote master branch.
To do this i normally switch to the local master branch, do a git pull
and use git checkout -b 'myFeatureBranchName'
which will create & switch me to a new local branch. I do my changes commit and push then merge back into to master.
However, in this instance i have switched to master done a git pull
but forgot to create and switch to a new branch. Is there a command that will allow me to create & switch to a new feature branch and also carry over all my changes to the new branch?
Thanks in advance