My .gitignore on a local repo looks like this: 
api/includes/utility.php
api/includes/AppSettings.php
When I make changes to the above files, git seems to want me to track them and commit or else will not let me git pull 
For example, on git status: 
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#   modified:   api/includes/utility.php
I have read several posts on Stack with similar issues, but I am not using wildcards in .gitignore. 
 
    