From f8ee444f4e63ff0c97b443c607d31b5682424c93 Mon Sep 17 00:00:00 2001 From: Yanbing Date: Wed, 27 Sep 2017 13:03:35 -0700 Subject: [PATCH] minor changes --- ...r-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 b4ddd56..746730b 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 @@ -11,7 +11,8 @@ 1. Restart sshd so the changes to the `Path` environment variable can take effect. 1. Create Windows users for all Git users. 1. Create a central Git repositories - * Go to where you want to create a central repo, `git clone --bare ` A directory with name `.git` will be created. In it will be the .git contents of your source dir repo. for example + * Go to where you want to create a central repo, `git clone --bare ` A directory with name `.git` will be created. In it will be the .git contents of your source dir repo. for example: + ``` git clone --bare c:\git\newrepo.git ``` @@ -22,12 +23,11 @@ `$env:GIT_SSH_COMMAND = '"C:\Program Files\OpenSSH\ssh.exe" -T'` 1. (Optional) Register the user private key for single sign on - `ssh-add.exe ` + `ssh-add.exe ` 1. To check out a repository: **Note that `git clone username@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: - ``` # initialize a local repo folder git init mylocalrepo cd mylocalrepo @@ -37,4 +37,3 @@ git config --local remote.origin.uploadpack "powershell git-upload-pack" git config --local remote.origin.receivepack "powershell git-receive-pack" git fetch origin - ```