L
L
lavezzi12015-12-27 11:24:39
css
lavezzi1, 2015-12-27 11:24:39

How to see the contents of a file in git as of a few days ago?

Hello. You need to revert the state (contents) of several files to a few days ago. I found a commit, what's next?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Leonovich, 2015-12-27
@lavezzi1

Run git checkout hash, replace hash with the beginning of your commit hash. For example:
git checkout 950601c2e

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question