tldr/pages.tr/common/git-restore.md

34 lines
925 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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`