Populate index from a tree-ish.
Section: Trees and Index Plumbing
Read tree into index
bash
bash
git read-tree HEADLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Trees and Index Plumbing
Mark file assume-unchanged
Hint that Git should skip stat checks for a path.
Mark skip-worktree
Tell Git to avoid touching a path in sparse-like workflows.