Manually Reset to a Specific Commit - Git Commands

Instructions to manually reset your index and work tree to a specific commit without changing HEAD in Git. Be sure to write a descriptive commit message.

Code

git checkout SHA .git commit