--- title: "How to revert a design review (pull request)" slug: "how-to-revert-a-design-review-pull-request" description: "Learn the ins and outs of reverting a design review to ensure a smooth process." updated: 2022-08-17T16:21:22Z published: 2022-08-17T16:21:22Z canonical: "learn.allspice.io/how-to-revert-a-design-review-pull-request" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.allspice.io/llms.txt > Use this file to discover all available pages before exploring further. # How to revert a design review (pull request) It happens to all of us. You sign off on a design review (pull request) and merge the changes, only to learn that not all of the correct changes were merged in. This how-to explains how to revert a design review and keep your commits so you can add your additional changes and apply your original changes. ## How to revert You may want to stash your changes if you have work-in-progress. The first thing you need to do is switch/checkout your local repo to main. The changes were merged from your development branch into your main branch and the main branch is what needs to be reverted. If you have TortoiseGit, you can right click on your file explorer and select "Switch/Checkout". ![tortoisegit switch checkout.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/tortoisegit%20switch%20checkout%285%29.png) Select the main branch and click ok to switch to the main branch. ![Screen Shot 2022-08-16 at 5.43.41 PM.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/Screen%20Shot%202022-08-16%20at%205.43.41%20PM.png) Next you want to look at a log of the changes. In TortoiseGit, right click on a file explorer window and select "Show log". ![tortoisegit show log.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/tortoisegit%20show%20log.png) The log will show the most recent commits. In this example, we have a design review (PR) that merges in three commits. We would like to revert back to the previous merge. ![Screen Shot 2022-08-16 at 5.44.10 PM.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/Screen%20Shot%202022-08-16%20at%205.44.10%20PM.png) Select the merge/commit that you want to revert to. Right click and select "Reset 'main' to this". ![tortoisegit reset main to this.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/tortoisegit%20reset%20main%20to%20this.png) The dialog will show the commit SHA hash. Change the reset type to "Hard". This will reset the working tree and index and discard all local changes. ![Screen Shot 2022-08-16 at 5.45.00 PM.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/Screen%20Shot%202022-08-16%20at%205.45.00%20PM%281%29.png) Now you need to push your local changes to the server. Using TortoiseGit, right click in the file explorer and select "Push". ![tortoisegit push 3.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/tortoisegit%20push%203.png) In the push dialog, change the Options to select "force" or "force with lease", otherwise the push will not go through. ![Screen Shot 2022-08-16 at 5.46.19 PM.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/Screen%20Shot%202022-08-16%20at%205.46.19%20PM%281%29.png) Your local files and the remote main branch will now be reverted to the previous state. ![Screen Shot 2022-08-17 at 11.18.54 AM.png](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/Screen%20Shot%202022-08-17%20at%2011.18.54%20AM.png) You can now edit, delete, or add more commits to your development branch and create a new design review (PR) to apply and merge those commits to your main branch.