diff --git a/Setting-up-a-Git-server-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH.md b/Setting-up-a-Git-server-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH.md index 95fd316..949828f 100644 --- a/Setting-up-a-Git-server-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH.md +++ b/Setting-up-a-Git-server-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH.md @@ -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 +