I am trying to tell Git to ignore changes I make to a properties file so that I don't accidentally commit it to my git repository. I am using:
git update-index assume-unchanged [file]
Which gives the output:
error: assume-unchanged: does not exist and --remove not passed fatal: Unable to process path assume-unchanged
I don't know what this error message means and Google appears to have drawn a blank. The [file] mentioned above is versioned in the repository and has filesystem (not added to staging area) changes.
How can I get Git to ignore filesystem changes to my file (so that "git add ." will not add it to the staging area)?
Thanks!
To unset, use --no-assume-unchanged . To see which files have the "assume unchanged" bit set, use git ls-files -v (see git-ls-files[1]).
You can type git update-index --assume-unchanged <file> to temporarily exclude the file from any tracking, pretending it never changed.
The DROP INDEX command is used to delete an index in a table.
If you have already installed Git, you can update Git with the command. git update-git-for-windows. to know the current version, use: git --version.
Maybe it's an accidental error when you wrote the question, but I think the "--" is missing in front of the argument.
Does git update-index --assume-unchanged [file]
work?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With