Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 293 Bytes

File metadata and controls

8 lines (5 loc) · 293 Bytes

undo-a-wrong-commit

real revert a wrong commit pushed

⚠ Make sure to be in correct branch!!

  • git reset --soft HEAD~1
    go back one step without losing all modify of committed files

  • git reset --hard HEAD~1
    go back one step and lost all commit modify of files