I am trying to add a few files to .gitignore
, but not having luck:
# -- in my .gitignore file --
# other items
settings_staging.py
settings_production.py
And to test it I'm doing:
$ git check-ignore settings_staging.py
I know my .gitignore
is working and including some files, such as the __pycache__
files, but how do I get it to ignore particular files I specify?
Incidentally, if I change the name of the file to staging.py
and use the following, it works in the gitignore:
*staging.py
$ git check-ignore staging.py
staging.py