restore Восстанавливает рабочее дерево файлов. Работает в Git с версии…
Восстанавливает рабочее дерево файлов. Работает в Git с версии 2.23+.
Смотри также git checkout и git reset.
git restore {{path/to/file}}
{{commit}}
:git restore --source {{commit}} {{path/to/file}}
git restore :/
git restore --staged {{path/to/file}}
git restore --staged :/
git restore --worktree --staged :/
git restore --patch