Because of changes to how tracking branches are created and pushed I donot suggest renaming branches.
This is what I recommend:
Make a copy of the branch at its current state:
git branch crazyexperiment
(The git branch command will leave you with your current branch still checked out.)
Reset your current branch to your desired commit with git reset:
git reset --hard c2e7af2b51
(Replace c2e7af2b51 with the commit that you want to go back to.)
When you decide that your crazy experiment branch does not contain something helpful, you can delete it with:
git branch -D crazyexperiment
It's always nice when you are beginning out with history-modifying git commands (reset, rebase) to create backup branches before you run them.
Eventually, once you're comfortable you won't find it necessary. If you do modify your history in a way that you just don't desire and haven't created a backup branch, look into git reflog. Git keeps commits around for quite a while even though there aren't any branches or tags pointing to them