git-restoreÇalışan ağaç dosyalarını onar. Git sürümü 2.23+ olmalıdır.
git checkoutvegit resetkomutlarına da ayrıca bakılması tavsiye edilir. Daha fazla bilgi için: https://git-scm.com/docs/git-restore.
git restore {{dosya/konumu}}
git restore {{[-s|--source]}} {{commit}} {{dosya/konumu}}
git restore :/
git restore {{[-S|--staged]}} {{dosya/konumu}}
git restore {{[-S|--staged]}} :/
git restore {{[-W|--worktree]}} {{[-S|--staged]}} :/
git restore {{[-p|--patch]}}