git-restoreÇalışan ağaç dosyalarını onar. Git sürümü 2.23+ olmalıdır. Ayrıca bakınız:
git checkout,git reset. 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]}}