Do a git revert
Common options
-e
--edit
This is a default option and doesn't need to be specified. This option will open the configured system editor and prompts you to edit the commit message prior to committing the revert.
--no-edit
This is the inverse of the -e
option. The revert will not open the editor.
-n
--no-commit
Passing this option will prevent git revert
from creating a new commit that inverses the target commit. Instead of creating the new commit this option will add the inverse changes to the Staging Index and Working Directory.
Reference Links
Last updated