Here are some of my thoughts, experiments, documents and things how I prefer to do it.

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

  • Git
© 2023

वसुधैव कुटुम्बकम्

(Vasudhaiva Kutumbakam)

(The world is one family)