79103110

Date: 2024-10-18 17:36:28
Score: 0.5
Natty:
Report link
git reset --soft HEAD~1

Use this if you want to undo the commit, but keep your changes visible and staged for further modifications.

git reset --hard HEAD~1

Use this if you want to undo the commit and discard your changes completely.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Subrata Ghosh