I want git
to ignore application.ini
, so I've added .gitignore
/application/configs/application.ini
The problem is that I didn't commit the .gitgignore
before everything else, I committed it afterwards. So I read here: Github gitignore help that you can use:
git rm --cached application.ini
After the fact.
So I commited the change along with all the other members of the team, it showed that application.ini
was deleted and pushed to repo. After pulling, the application.ini
file was removed.
So I realised that git is not tracking so we should add out own applciation.ini
and all configuration will stay locally and won't get commited.
The problem is that when I checked out a commit from a while back, and then went back to master: application.ini
was removed again.
Maybe I am doing something wrong, or just not overstanding the concepts/