K
K
khmlnk2015-07-24 14:28:15
git
khmlnk, 2015-07-24 14:28:15

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

2 answer(s)
V
Victor, 2015-07-24
@khmlnk

While on the master branch: git reset %commit_hash%

P
Puma Thailand, 2015-07-24
@opium

git reset hard hash wrote
something like this
from memory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question