Cancel git update-index - no change

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 --assume-unchanged <filepath> 

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.

+5
source share
1 answer

To disable the supposed constant bit :

 git update-index --no-assume-unchanged <filepath> 
+10
source

All Articles