The file .gitignore, I think it is only used for change tracking. Once you pushed a file successfully to a remote branch, others can literally checkout/clone it.
But when they modify that file on their PCs, any changes of that file will not be detected by git. They must commit with -f to push the changes anyway.
Actually, I guess you can try your scenario on your PC with ease.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…