D
D
DenPolosin2017-03-22 20:40:00
git
DenPolosin, 2017-03-22 20:40:00

How to restore files using git?

My site works with git, more precisely through bitbucket, and made all changes through commits. I edited the file via ftp and it broke. What command can restore files on the server at the time of the last commit, if the changes were not made through a commit?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2017-03-22
@v_decadence

git reset --hard

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question