SyntaxFix
Write A Post
Hire A Developer
Questions
Simply run git checkout -b mynewbranch.
git checkout -b mynewbranch
Then run git log, and you'll see that commit is now HEAD on this new branch.
git log
HEAD