79576375

Date: 2025-04-16 04:06:12
Score: 2
Natty:
Report link

# Undo the last commit but keep changes staged

git reset --soft HEAD~1

# Undo the last commit and unstage files (but keep changes)

git reset --mixed HEAD~1

# Completely remove last commit and discard changes

git reset --hard HEAD~1

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: UncleMelo