reverse commit after creating a new branch