I\'d like to move the last several commits I\'ve committed to master to a new branch and take master back to before those commits were made. Unfortunately, my Git-fu is not
1. Rename master branch to your newbranch (assuming you are on master branch):
master
newbranch
git branch -m newbranch
2. Create master branch from the commit that you wish:
git checkout -b master
e.g. git checkout -b master a34bc22