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

29 lines
659 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 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}}`