I've tried a lot of patterns, but non of them works, and the file still synced with the remote server (GitHub): I have a text file inside the project folder:
ProjFolder
secret.txt
.gitignore
I want to ignore the file secret.txt. I tried:
./secret.txt
/secret.txt
*/secret.txt
and a lot more that I can't remember. Is it possible to ignore file that's not in the same .gitignore directory?!