git branch branchname-backup #do dangerous stuff ... # whoops I just broke the branch really bad I'll start over git reset branchname-backup