Categories
How to restore the master branch to a specific commit?
Good day. There was a need to roll back the master branch to the commit_hash commit. Please tell me how to do it? I try through checkout - it doesn't work :/
Answer the question
In order to leave comments, you need to log in
While on the master branch: git reset %commit_hash%
git reset hard hash wrote something like this from memory
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question