V
V
VicTHOR2020-08-18 14:41:31
git
VicTHOR, 2020-08-18 14:41:31

How to debug git checkout?

It is necessary to return the file to the state of the old commit, I do git checkout коммит путь/до/файлаit and nothing happens, the file does not change and is git statusempty. How to understand what is the problem?

UPD: I
made git checkoutanother file with the same commit, this file did not change, but it showed git statusthat this file was not added to the index for commit, and that the same file was already ready for commit .. As a result, I did it git add --all, git statusnow empty, but it showed warirng about CRLF will be replaced by LF...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question