I want to ignore a file containing database-passwords and such. I asked a friend who set up the git if I could us gitignore. He said \"no, because there is already a file wi
I think that if you add the file to .git/info/exclude that it will ignored, and that this exclude file is local to your repository and will not be available to others.
I'm only learning git myself, so you may want to check this out further.
Here's an alternative to gitignore:
Ignore the .gitignore file itself
You should use a gitattribute filter driver

That way: