Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git update-index assume-unchanged error: assume-unchanged: does not exist and --remove not passed

Tags:

git

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!

like image 567
Matt Avatar asked Sep 05 '13 11:09

Matt


People also ask

How to remove assume unchanged in Git?

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]).

What is assume unchanged in Git?

You can type git update-index --assume-unchanged <file> to temporarily exclude the file from any tracking, pretending it never changed.

What command is used to take a change out of the index?

The DROP INDEX command is used to delete an index in a table.

What is Update command in Git?

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.


1 Answers

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?

like image 113
treze Avatar answered Oct 05 '22 05:10

treze