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
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.