git apply

Applique un correctif à un fichier et/ou à l index. Plus d'informations : https://git-scm.com/docs/git-apply.

git apply --verbose {{chemin/vers/fichier}}

git apply --index {{chemin/vers/fichier}}

curl -L {{https://example.com/file.patch}} | git apply

git apply --stat --apply {{chemin/vers/fichier}}

git apply --reverse {{chemin/vers/fichier}}

git apply --cache {{chemin/vers/fichier}}