I have tried to put in .gitignore file in the root directory, and that works locally. But the remote repository I use does not allow files to be committed in the root directory.
So I tried pasting the .gitignore file in some other folder, but the files I need ignored are not ignored. I may be missing something, and I need git to look into that folder for the .gitignore file. How do you do this?