finn@LaptopFinn:~$ git --version
git version 2.34.1
and this is up-to-date
finn@LaptopFinn:~$ sudo apt-get install git
[sudo] password for finn:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.8).
git set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
See https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git
Git already comes with WSL
and this is up-to-date
OPTIONAL (?) To make it worked with the Git for Windows and its the Git Credential Manager, I follow instructions https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git#git-credential-manager-setup