I am looking for some way to remotely ignore all modifications to a file added in a Git repo.
File: .env.secret
USERNAME=
PASSWORD=
- Here we have a file named
.env.secret
in the root of the Git repo. - It has been remotely added to the repo.
We are wanting to make sure that any user who updates this file never uploads their changes remotely.
As far as I know, a user can only locally ignore updates to a file with the following command:
git update-index --assume-unchanged .env.secret
Is there any way to not require a user to run this command in order to ignore updates to the file .env.secret
?