$ 0 0 Use IntelliJ drop commit as one of the easiest and most straightforward solution.You can access it from the bottom left corner:Then you can select the commit and right click on it you will get this menu:Then you can choose: the drop commit option.