GIT-CHECKOUT-INDEX(1) Git Manual GIT-CHECKOUT-INDEX(1) (NAME) git-checkout-index - (SYNOPSIS) git checkout-index [-u] [-q] [-a] [-f] [-n] [--prefix=] [--stage=|all] [--temp] [--ignore-skip-worktree-bits] [-z] [--stdin] [--] [...] (DESCRIPTION) ( ). (OPTIONS) -u, --index stat . -q, --quiet ( ). -f, --force . -a, --all skip-worktree (: --ignore-skip-worktree-bits). . -n, --no-create . --prefix= ( / ). --stage=|all (stage) . . : --stage=all --temp . --temp . stdout . --ignore-skip-worktree-bits skip-worktree . --stdin . LF ( ) . -z --stdin LF NUL . -- . . git checkout-index . git checkout-index -a . git checkout-index -f -a . . << >> : $ find . -name '*.h' -print0 | xargs -0 git checkout-index -f -- *.h . <<>> . git checkout-index --stdin : $ find . -name '*.h' -print0 | git checkout-index -f -z --stdin -- -a . -- . --TEMP --STAGE=ALL (USING --TEMP OR --STAGE=ALL) --temp ( --stage=all ) git checkout-index . stat . (stages) . stdout . : 1. tempname TAB path RS --stage --stage=all . tempname path . . 2. stage1temp SP stage2temp SP stage3tmp TAB path RS --stage=all . (stage1temp, stage2temp, stage3temp) . . 0 . RS ( ) (newline) -z null . . path (top level) . (symlink) . () . (EXAMPLES) $ git checkout-index -n -f -a && git update-index --ignore-missing --refresh git checkout-index << >> (prefix) git checkout-index << >> . : $ git checkout-index --prefix=git-export-dir/ -a git checkout-index <<>> . "/" . . . $ git checkout-index --prefix=.merged- Makefile Makefile .merged-Makefile . (SEE ALSO) git-update-index(1), git-read-tree(1), git(1) (GIT) git(1) Git 2.55.0 2026-06-29 GIT-CHECKOUT-INDEX(1)