A
A
Andrey Astafiev2016-07-13 11:20:38
git
Andrey Astafiev, 2016-07-13 11:20:38

How to rollback changes to a file in git?

The essence of the problem. A lot of commits and edits ran up and it turned out that everything was correct before, but now it’s not. As a result, it is necessary to restore a couple of files from previous commits without touching the changes in the already running commits.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Medvedev, 2016-07-13
@Astafiev_Andrey

git checkout хешкомита filename

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question