Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

How to revert to previous commit

Austin edited this page Dec 24, 2018 · 1 revision

If you fuck up locally then in the worst case scenario you can run

git reset --hard <commit-hash>

if you need to fix a remote branch e.g. master or dev_branch then after reset run

git push -f origin master

Clone this wiki locally