How To Undo a Merge in GitHub | Scribe

    How To Undo a Merge in GitHub

    • |
    • 0 step |
    • 46 seconds
    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]]
    Was this Scribe helpful?
    Save this document for future reference.
    This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe