undo last commit, move to different branch