1. Rename master
branch to your newbranch
(assuming you are on master
branch):
git branch -m newbranch
2. Create master
branch from the commit that you wish:
git checkout -b master <seven_char_commit_id>
e.g. git checkout -b master a34bc22