![Mastering Git: Reset v Revert. Which one should you use and why? | by Philip Wilkinson | Towards Data Science Mastering Git: Reset v Revert. Which one should you use and why? | by Philip Wilkinson | Towards Data Science](https://miro.medium.com/max/1400/1*YPzYUfchXmQPtOTYRlyx7w.png)
Mastering Git: Reset v Revert. Which one should you use and why? | by Philip Wilkinson | Towards Data Science
![git reset soft: When to Use Git Reset, Git Revert & Git Checkout - DEV Community π©βπ»π¨βπ» git reset soft: When to Use Git Reset, Git Revert & Git Checkout - DEV Community π©βπ»π¨βπ»](https://res.cloudinary.com/practicaldev/image/fetch/s--vtdH0y_D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://storage.kraken.io/kk8yWPxzXVfBD3654oMN/f0ae16e339631560090233b4c5850990/git-reset.png)
git reset soft: When to Use Git Reset, Git Revert & Git Checkout - DEV Community π©βπ»π¨βπ»
![git reset soft: When to Use Git Reset, Git Revert & Git Checkout - DEV Community π©βπ»π¨βπ» git reset soft: When to Use Git Reset, Git Revert & Git Checkout - DEV Community π©βπ»π¨βπ»](https://res.cloudinary.com/practicaldev/image/fetch/s--x1oDKltr--/c_imagga_scale,f_auto,fl_progressive,h_900,q_auto,w_1600/https://cl.ly/063v3m0l2X3b/Image%25202018-05-21%2520at%252010.56.45%2520AM.png)
git reset soft: When to Use Git Reset, Git Revert & Git Checkout - DEV Community π©βπ»π¨βπ»
![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)