![A simple solution to revert a git commit that has been pushed to master branch | by Mousumi Roy | Dev Genius A simple solution to revert a git commit that has been pushed to master branch | by Mousumi Roy | Dev Genius](https://miro.medium.com/max/750/1*9uyMkCf1KrEKhFkE_2lUwg@2x.jpeg)
A simple solution to revert a git commit that has been pushed to master branch | by Mousumi Roy | Dev Genius
![Eddy Vinck on Twitter: "🚨 Oh no! You've pushed commits to the main branch on accident! 🚨 🚑 Here is how to fix it without breaking git history "git revert" will undo Eddy Vinck on Twitter: "🚨 Oh no! You've pushed commits to the main branch on accident! 🚨 🚑 Here is how to fix it without breaking git history "git revert" will undo](https://pbs.twimg.com/media/E3B8fISXEAESP-u.jpg)
Eddy Vinck on Twitter: "🚨 Oh no! You've pushed commits to the main branch on accident! 🚨 🚑 Here is how to fix it without breaking git history "git revert" will undo
![How to revert to a previous commit when you've already pushed your changes | by Linh Nguyen My | Medium How to revert to a previous commit when you've already pushed your changes | by Linh Nguyen My | Medium](https://miro.medium.com/max/538/1*zI4RxqU_J1MGQy_ZtzpQSA.png)