I have created my .gitignore file at the root, alongside my .git folder.
But when I run $git status it shows modified: .gitignore
And beneath that, it shows the files that have been modified and are supposed to be ignored.
I've looked on StackOverflow earlier but couldn't find anything that worked.
Here's the content of my file:
/site/assets/cache/*
site/assets/cache/*
site/assets/cache/
/site/assets/sessions/*
site/assets/sessions/*
site/assets/sessions/
/site/assets/logs/*
site/assets/logs/*
site/assets/logs/
/site/config.php
site/config.php
project.sublime-workspace
project.sublime-project