Once your files are in the repo, you cannot exclude by adding them into the .gitignore. You may want to check this thread: