Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git commit vsidx file access denied in Visual Studio

I've recently updated Visual Studio to 17.8 and since then I can no longer do a Git commit.

The error it displays at the top of the Git panel is: Git failed with a fatal error error: open ("......\FileContentIndex...vsidx"):Access Denied

I'm running in Administrator mode, and I've removed the read only access from the repo folders. I've tried deleting the FileContentIndex but VS just recreates it. Tried Git add . but still cannot access index file. Tried it reset with no success.

Somehow this index file is preventing me from committing my changes. There's no options to disabled indexing. I'm running Visual Studio Professional 2022 17.8.2 (Not preview)

like image 993
James Avatar asked Dec 22 '25 08:12

James


1 Answers

It looks like you are trying to commit the .vs folder.

You should be git ignoring it.

like image 184
Matt Evans Avatar answered Dec 24 '25 02:12

Matt Evans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!