ssh-keygen -t ed25519 -C "[email protected]"
# enter a file in which to save the key (/c/Users/YOU/.ssh/ed25519):[Press enter]
# enter passphrase(empty for no passphrase): [Type a passphrase]
# Enter same passphrase again: [Type passphrase again]
# from admin powershell
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
Start-Service ssh-agent
ssh-add C:/Users/You/.ssh/id_ed25519
# Copy to clipboard
Get-Content C:\Users\YOU\.ssh\id_ed25519.pub -Raw | Set-Clipboard# show current configuration
git config list
# add core.sshCommand config
git config --global core.sshCommand (Get-Command ssh).Source.Replace('\','/')