Skip to content

Latest commit

 

History

History
executable file
·
14 lines (10 loc) · 230 Bytes

File metadata and controls

executable file
·
14 lines (10 loc) · 230 Bytes

revert a commit

  • IF you have NOT pushed your changes to remote
git reset HEAD~1
  • Check if the working copy is clean by git status.

ELSE you have pushed your changes to remote

git revert HEAD