I'm working on an Angular app in Visual Studio Code. I also have a remote github repository for this project.
I added Express.js. When I wanted to commit the changes, I got this error when staging the commit:
error: open("AppData/Local/Comms/UnistoreDB/USS.jtx"): Permission
denied error: unable to index file
AppData/Local/Comms/UnistoreDB/USS.jtx fatal: adding files failed
My account has permissions for the file, and it's not being used by another application for as far as I can tell.
Long story short: I tried various ways to fix the issue (incl. moving the app folder && creating a clone of the remote repo, replacing the contents and forcing a push) but my remote repository is now a complete disaster. Oh, and all previous commits seem to have been deleted...
Is there any way for me to:
Get around the permission denied error. Basically overwrite the remote master with the files I currently have, and bring both up to sync?