git - Set an older commit to be HEAD

PHOTO EMBED

Wed Mar 15 2023 15:52:47 GMT+0000 (Coordinated Universal Time)

Saved by @statu7

git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f
content_copyCOPY

https://stackoverflow.com/questions/13956207/how-can-set-an-older-commit-to-be-head