Восстановить случайно удаленные файлы с помощью git сбросить жесткий

git fetch --all
git reset --hard origin/{{your branch name}}
Splendid Stoat