Reverting a commit in GitHub Desktop - GitHub Docs
Skip to main content

Reverting a commit in GitHub Desktop

You can use GitHub Desktop to revert a specific commit to remove its changes from your branch.

When you revert to a previous commit, the revert is also a commit. The original commit also remains in the repository's history.

Tip

When you revert multiple commits, it's best to revert in order from newest to oldest. If you revert commits in a different order, you may see merge conflicts.

  1. In the left sidebar, click History.

    Screenshot of the "History" tab in the sidebar. Above a list of commits, the tab button, labeled "History", is highlighted with an orange outline.

  2. Right-click the commit you want to revert and click Revert Changes in Commit.

    Screenshot of a list of commits in the "History" tab. The cursor hovers over the "Revert Changes in Commit" option in a context menu.

Further reading

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.