WSL Setup
Reference: Get started using Git on WSL | Microsoft Learn
Setup
First make sure you download and install git for windows. Git for Windows
Next update git in WSL
Bash |
---|
| $> sudo apt update
$> sudo apt upgrade
|
Next set the git credential manager in WSL
Bash |
---|
| $> git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
# For Azure DevOps support
$> git config --global credential.https://dev.azure.com.useHttpPath true
|
Next setup an SSH key to use for Github
Creating an ssh key |
---|
| ssh-keygen -t ed25519 -C "your_email@example.com"
|