Files
tldr/pages.tr/common/git-restore.md
2022-10-31 06:52:35 -03:00

34 lines
925 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git restore
> Çalışan ağaç dosyalarını onar. Git sürümü 2.23+ olmalıdır.
> `git checkout` ve `git reset` komutlarına da ayrıca bakılması tavsiye edilir.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-restore>.
- Sahnelenmemiş bir dosyayı mevcut commit'in sürümüne kavuştur:
`git restore {{dosya/konumu}}`
- Sahnelenmemiş bir dosyayı belirtilen commit'in sürümüne kavuştur:
`git restore --source {{commit}} {{dosya/konumu}}`
- İzlenen dosyalardaki sahnelenmemiş tüm değişiklikleri iptal et:
`git restore :/`
- Bir dosyayı sahnelenmemiş hale getir:
`git restore --staged {{dosya/konumu}}`
- Tüm dosyaları sahnelenmemiş hale getir:
`git restore --staged :/`
- Dosyalara yapılan sahnelenmiş veya sahnelenmemiş tüm değişiklikleri iptal et:
`git restore --worktree --staged :/`
- Onarılacak dosya parçalarını etkileşimli olarak seç:
`git restore --patch`