According to Microsoft docs - Browse Git repositories and compare branches in Visual Studio, I should have a Compare with Current Branch
menu option right after View history
. However, I don't have them, in neither the branch picker nor the 'Git Repository' window.
I'm using Microsoft Visual Studio Professional 2019, Version 16.11.16. This answer suggests this feature was available since Visual Studio 2017 Edit: Reading again, looks like it's a different feature.
Edit: I do get it with Visual Studio 2022 Community, Version 17.3.0, on the exact same clone. It's now named Compare 'mybranch' with 'main'
. This visualstudio blog post suggests it's a new feature, so maybe the documentation incorrectly attributes it to VS2019...