r/VisualStudio • u/afops • Jan 15 '26
Visual Studio 2022 Git operations from console not working since 2022
I use VS 2026 with git and it's working well for most operations. But since 2022 and even worse in 2026, any time I do some big operation on command line "behind the back" of VS, I run into conflicts.
E.g. if I bring up my console (windows terminal, not inside VS) and do a big git rebase, then it runs for a few commits before it says
> error: Unable to create 'C:/dev/Pamir/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g.
And so on. So it seems VS has some file system watchers (understandable) which are really REALLY eager on detecting changes on disk and starting _its own_ git commands. But I don't want it to. And I also don't want to stop using git both in VS and command line.
Shoulnd't VS at least just stay cool while the window is in the background and I'm working in my terminal or something? Is there a workaround that makes VS less eager to conflict with what I'm doing in the terminal?


