finnlennartsson / kpum_noddi

repo for processing of DKI/NODDI data for preterm project at KPUM
0 stars 0 forks source link

Install git on WSL #21

Closed finnlennartsson closed 1 year ago

finnlennartsson commented 1 year ago

See https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git

Git already comes with WSL

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.

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

finn@LaptopFinn:~$ git --version
git version 2.34.1
finn@LaptopFinn:~$ git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-mana
ger.exe"