Skip to content

git-tricks-collection/undo-a-wrong-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

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

About

real revert a wrong commit pushed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published