0

I get the following error with git update-index --assume-unchanged:

$ git update-index --assume-unchanged vcs.xml
fatal: Unable to mark file .idea/vcs.xml

and can't resolve this fatal error.

I had a read of this question git update-index --assume-unchanged returns "fatal unable to mark file"

but none of the solutions worked. I noticed someone else had this problem in one of the comments so it may be a specific problem related to .idea/vcs.xml.

Any suggestions?

Community
  • 1
  • 1
Snowcrash
  • 73,844
  • 72
  • 228
  • 347
  • 1
    You will get this error if the file is not in the index (i.e., is untracked, and possibly also ignored). Is that the case? – torek Dec 15 '16 at 12:10

1 Answers1

0

Try this:

$ git reset --hard HEAD
$ git update-index --assume-unchanged .idea/vcs.xml
Sajib Khan
  • 20,492
  • 6
  • 56
  • 69