To get started, open your "Terminal" or "Shell."
Navigate to your repository.
Run the following command to see the hashes of commits so you can determine which commit to reference: git reflog [[Enter]]
Next, enter the following command to undo the merge: git reset --merge previous-commit [[Enter]]