In my /.git/info/exclude
file I have placed two directories and a file:
workspace
data
config.php
All of which are in the root. While 'workspace' and 'data' are being ignored, config.php is pushing.
You need to remove config.php
from the git repo index first, if you want it to be ignored.
git rm --cached config.php
(See for instance "Making git “forget” about a file that was tracked but is now “.gitignored
”")
Plus, ignoring directory should be specify with an '/' at the end of your line:
workspace/
data/