Answer the question
In order to leave comments, you need to log in
Why can't a file deleted from git be restored?
Hello. Such a problem.
At work, I develop one project on ubuntu and work with git. One zip file was considered unnecessary and removed. Then I needed to restore it and I successfully restored it with these commands:
git rev-list -n 1 HEAD -- имя_файла
git checkout найденный_коммит^ -- имя_файла
Answer the question
In order to leave comments, you need to log in
And you should not want this)) what is in the vendor should be pulled up by the composer. In order not to change the lock, use: composer install -o
The fact that under Windows there can be troubles - well, well, vagrant will help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question