Skip to content

Git

Git on Windows

winget install --id Git.Git --exact --source winget --interactive

Choose Git from the command line and also from 3rd-party software for PATH and Use external OpenSSH for SSH.

git --version
git config --global core.sshCommand 'C:/Windows/System32/OpenSSH/ssh.exe'

New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.ssh" | Out-Null
ssh-keygen.exe --% -t ed25519 -N "" -C "" -f "%USERPROFILE%\.ssh\id_ed25519"

Get-Content "$env:USERPROFILE\.ssh\id_ed25519.pub"

PuTTYgen → Conversions → Import key and select %USERPROFILE%.ssh\id_ed25519. Click Save private key %USERPROFILE%.ssh\id_ed25519.ppk

C:\Users\YuriyArtemiev.gitconfig

[core]
  sshCommand = C:/Windows/System32/OpenSSH/ssh.exe

[user]
  name = Yuriy Artemiev
  email = yuriy.artemiev@esprow.com

git config --global --list --show-origin