I use Git pull to download changes from remote repo to my local dev folder. the problem is every time I pull changes, git downloads some file that exists in .gitignore file (e.g. /app/config/config.yml)
what am I doing wrong ?? here is my .gitignore
# Parameters
/app/config/parameters.yml
/app/config/parameters.ini
/app/config/config.yml
but when I pull git pull
I find a new config.yml !!
.gitignore
only ignores untracked files. It does not have any influence to the ones that have already been committed.
The purpose of gitignore files is to ensure that certain files not tracked by Git remain untracked.
References: