Git: Ignore changes to local file even if it’s tracked remotely
23 July 2025 (Updated 23 July 2025)
Let’s assume you have an index.php
file that’s tracked in the remote Git repo but you want to make changes to it locally without the changes being tracked by Git.
You can do that by running:
git update-index --assume-unchanged index.php
Tagged:
Git