Sunday, March 20, 2022

GitHub: Go back to a previous commit

 You can see commit history by clicking the commits link:



You copy the SHA of the commit you want to revert to, open a terminal, go to source folder and type

git reset --hard <SHA>

No comments:

Post a Comment