1

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.

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Fluidbyte
  • 5,162
  • 9
  • 47
  • 76

1 Answers1

2

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/
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250