Forgot to branch in git, need to move changes from master [duplicate]
If not yet committed anywhere (git status shows a bunch of stuff modified, it’s OK if it’s “git add”-ed too): $ git checkout -b newbranch Despite the name checkout this usage (with -b) does not check anything out. The -b flag says “create a new branch”, so git creates the branch-name and makes it correspond … Read more