Files
tldr/pages.tr/common/git-apply.md
2024-01-02 17:34:43 +01:00

29 lines
659 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 apply
> İndeks veya dosyalara yama uygula.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-apply>.
- Yamalanan dosyalarla ilgili mesajları yazdır:
`git apply --verbose {{örnek/dosya}}`
- Yamalanan dosyaları indekse uygula ve ekle:
`git apply --index {{örnek/dosya}}`
- Uzak yama dosyası uygula:
`curl -L {{https://ornek.com/dosya.patch}} | git apply`
- Çıktı için fark statistiği çıkar ve yamayı uygula:
`git apply --stat --apply {{örnek/dosya}}`
- Yamayı tersten uygula:
`git apply --reverse {{örnek/dosya}}`
- Yama sonucunu çalışan ağacı değiştirmeden indekste sakla:
`git apply --cache {{örnek/dosya}}`