I used to command line version given in this SO post to upgrade my current git version:
- Check current version:
(base) C:\Users\me>git --version
git version 2.34.1.windows.1
- Update if necessary, which it is for any version below 2.35 as per this offical announcement from 2022-04-12:
(base) C:\Users\me>git update-git-for-windows
- Immediate output & prompt (answer = y):
Git for Windows 2.34.1.windows.1 (64-bit)
Update 2.36.0.windows.1 is available
Download and install Git for Windows 2.36.0 [N/y]? y
################################################################### 100.0%
################################################################### 100.0%
- The installer will ask you in a separate window to authorize the modification of your system. Allow since it will remove the old version and install the new one.
- Wait until the installation is complete (the separate window will close).
- Check the new version:
(base) C:\Users\me>git --version
git version 2.36.0.windows.1
- Test on two existing git folders e.g., one with changes one without and run
git status
.
The output should be the same one that would have come from the old version & as you expected, i.e.
"Changes not staged for commit: [...]"
and
"Your branch is up to date with x"
Final note: the installer will not change your .condarc
if you have one setup.