I have been using VScode for a long time, and I have used the git functionality a lot. But it has suddenly started failing. Every time I try to add a file, a single file, it says there is an error:
git add -A -- ""repository folder""/README.md
fatal: ""repository folder""/README.md' is outside repository
I have checked the settings and there is nothing weird and also, when I add all files at once instead of just one at a time, it works well. If I add the files with the terminal's commands, it works too.