I have two files in a config directory: local.config and local.config.example I only want local.config.example to be in git and ignore local.config.
I tried the following to .gitignore, but this doesn't seem to work. What am I doing wrong?
local.config
!local.config.example