Move the most recent commit(s) to a new branch with Git

git branch newbranch  
git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.*1  
git checkout newbranch  

via Stackoverflow