git restore

작업 트리 파일을 복원합니다. Git 버전 2.23+ 이상이 필요합니다. 같이 보기: git checkoutgit reset. 더 많은 정보: https://git-scm.com/docs/git-restore.

git restore {{경로/대상/파일}}

git restore --source {{커밋}} {{경로/대상/파일}}

git restore :/

git restore --staged {{경로/대상/파일}}

git restore --staged :/

git restore --worktree --staged :/

git restore --patch