Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
We write in the terminal
git checkout хеш_коммита -- полное_имя_файла
and the state of the file will return to what it was after the commit with the specified hash.
But it is more convenient to call the history of this file, select the necessary commit, show the difference between versions and roll back unnecessary changes. And you can leave something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question