Updated Setting up a Git server on Windows using Git for Windows and Win32_OpenSSH (markdown)

Yanbing 2018-10-17 16:42:01 -07:00
parent 555b7d4b89
commit 6ce1e818d2

@ -26,7 +26,9 @@
`ssh-add.exe c:\test\myprivatekey`
1. To check out a repository, go to where you want to put your local repo,
**Note that `git clone user@domain@servermachine:C:/test/myrepo.git` does not work due to [known issue](https://github.com/PowerShell/Win32-OpenSSH/issues/895). Work around it by following steps:
**Note that `git clone user@domain@servermachine:C:/test/myrepo.git` does not work due to [known issue](https://github.com/PowerShell/Win32-OpenSSH/issues/895). Work around it to set powershell as defaultShell in registry.
Or
by following steps when cmd is default shell:
cd c:\mygitrepros
# initialize a local repo folder
@ -38,3 +40,4 @@
git config --local remote.origin.uploadpack "powershell git-upload-pack"
git config --local remote.origin.receivepack "powershell git-receive-pack"
git fetch origin