merged commit revert code example Example: recover a merged commit git Click to copygit checkout -b remerge master git merge branch -s ours