Git remove file from index (assume unchanged)

Git

Warning: Undefined array key "socialize_RedditWidget" in /home/phpacd/websites/shkodenko.com/wp-content/plugins/socialize/frontend/socialize-services.php on line 166

The command below will tell git you want to start ignoring the changes to the file:

# git update-index --assume-unchanged path/to/file

When you want to start keeping track again:

# git update-index --no-assume-unchanged path/to/file