GIT-APPLY(1) Git Manual GIT-APPLY(1) (NAME) git-apply - / (SYNOPSIS) git apply [--stat] [--numstat] [--summary] [--check] [--index | --intent-to-add] [--3way] [--ours | --theirs | --union] [--apply] [--no-add] [--build-fake-ancestor=] [-R | --reverse] [--allow-binary-replacement | --binary] [--reject] [-z] [-p] [-C] [--inaccurate-eof] [--recount] [--cached] [--ignore-space-change | --ignore-whitespace] [--whitespace=(nowarn|warn|fix|error|error-all)] [--exclude=] [--include=] [--directory=] [--verbose | --quiet] [--unsafe-paths] [--allow-empty] [...] (DESCRIPTION) diff ( << >>) . . --index --cached . . . git-format-patch(1) / git-am(1) . (OPTIONS) ... . - . --stat diffstat . "apply" . --numstat --stat . 0 0 - . "apply" . --summary git diff (mode) . "apply" . --check / . "apply" . --index ( --check ). --index ( ) . --cached . --check . -N, --intent-to-add ( --intent-to-add git-add(1) ). --index --cached . --index --3way . -3, --3way blob blob - . --index --cached --reject . --cached (higher stages) . --ours, --theirs, --union ( ) . --3way . --build-fake-ancestor= git diff blob . blob blob . ( ) . -R, --reverse . --reject git apply (hunks) . *.rej . -z --numstat NUL . "" core.quotePath ( git-config(1)). -p ( ) diff. -p2 a/dir/file file . . -C . . . --unidiff-zero git apply diff (unified diff) . diff --unified=0 . --unidiff-zero . . --apply << apply >> git apply . . --no-add . diff . --allow-binary-replacement, --binary . (no-op) . --exclude= . (patchsets) . --include= . . --exclude --include . / (include) . --ignore-space-change, --ignore-whitespace . --whitespace . . --whitespace= . core.whitespace . ( ) . . git-apply nowarn . : o nowarn . o warn (). o fix (strip -- ). o error . o error-all error . --inaccurate-eof diff (newline) . diff . . -v, --verbose stderr. . . -q, --quiet stderr. . --recount (hunk headers) ( ). --directory= . -p . a/git-gui.sh b/git-gui.sh git apply --directory=modules/git-gui modules/git-gui/git-gui.sh . --unsafe-paths ( git apply GNU patch ) ( ) . git apply "GNU patch " --unsafe-paths . --index --cached . --allow-empty diff . . (CONFIGURATION) git-config(1) . : apply.ignoreWhitespace change git apply --ignore-space-change. : no none never false git apply . apply.whitespace git apply --whitespace. (SUBMODULES) git apply . --index ( ) . (checked-out) . --index ( ) . (SEE ALSO) git-am(1). (GIT) git(1) Git 2.55.0 2026-06-29 GIT-APPLY(1)