I used the following command to add a file to the repository with some default settings, and then change the settings locally without clicking on their repo every time:
git update-index
Now I need to push local changes to the repo, so I will need to undo this command. How can I do this?
Note I know that deleting the repo and then cloning it would cancel it, and I'm sure git reset --hard will work as well, but I have several files that are in the same situation and execute the above command so that git ignoring them again is simply impossible. Therefore, I am looking for a command that will only affect this file.
source share