git-restore

restore Восстанавливает рабочее дерево файлов. Работает в Git с версии…

git restore

Восстанавливает рабочее дерево файлов. Работает в Git с версии 2.23+.

Смотри также git checkout и git reset.

git restore {{path/to/file}}

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

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← git-reset git-rm →