how to rollback a git commit merged code example Example: recover a merged commit git git checkout -b remerge master git merge branch -s ours