Skip to content

How to revert a commit using GitHub Desktop

Prerequisites

You need to have a GitHub account GitHub and download GitHub Desktop

Background

Reversing a commit

  1. Create a new branch in GitHub Desktop (Important step! Never make changes to the master branch!)
  2. Click on History tab.
  3. Find commit you want to revert.
  4. Right click. Click on 'Reverse Changes in Commit' from the drop-down list.
  5. Fix any conflicts.
  6. Commit branch, create pull request and assign a reviewer.

Contributors