Last active
July 23, 2018 17:04
-
-
Save bradobro/beb0917866825491c11052edeea027be to your computer and use it in GitHub Desktop.
go get via ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# command-line version: git config --global --add '[email protected]' 'https://github.com' | |
[url "[email protected]"] # this works on Linux | |
insteadOf = https://github.com | |
# Git for Windows (git version 2.18.0.windows.1) seems to do less magic with the substitution and needs: | |
[url "[email protected]:"] # Git for Windows (under MING) needs the trailing ":" here and the trailing "/" below. | |
insteadOf = https://github.com/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows also needs ssh-agent if your keys are password protected. This started shipping with Windows 10 in 2018.
Start the service
ssh-agent
from the an admin PowerShell (orOpenSSH Authentication Agent
in the services UI).From the thread on PowerShell/Win32-OpenSSH#224
1 . Check the current status of ssh-agent: "Get-Service | select -property name,starttype"
2. Set the new type : "Set-Service -Name ssh-agent -StartupType Manual"
3. Start it: "Start-Service ssh-agent"
4 Add simply your key as before: "ssh-add"