There used to be a setting to disable, Tools > Options > Environment > Preview Features and untick the New Git user experience. I've recently realised (with 17.6.0) that it has disappeared. I cannot find how to disable.
I want to disable the multiple repositories feature. These are the all options I've got now.
Update:
With version 17.8.0 of Visual Studio 2022, you can now disable this as detailed below as well as here.
Answer prior to stable release:
A popular feedback post on Microsoft's Developer Community was answered by a Microsoft member that shows they are adding a way to disable this (it is now pending release to the stable version of Visual Studio 2022). However, Visual Studio 17.8 Preview 2 contains this feature now as described in this blog post:
In some workflows, it was important to control whether multi-repo was activated automatically. With a new setting you can keep your focus on an individual repository without seeing the multi-repository UI.
You should be able to find this option in Tools → Options → Source Control → Git Global Settings.
Note: this is currently only available in the preview version of Visual Studio 2022. You can expect this to be pushed to the stable version in the near future.