Git · Patches and plumbing

git update-index

Changes the index directly, including performance hints for large files.

Syntax
git update-index --assume-unchanged <path>

Example

Example
git update-index --assume-unchanged .env.local

More in this group

git am git apply git apply --check git bundle git bundle verify git commit-tree git format-patch git read-tree

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course