From 118e2f61c92b22c8e1455bca5bd57be5cc80c05d Mon Sep 17 00:00:00 2001 From: Yanbing Date: Fri, 21 Sep 2018 14:36:18 -0700 Subject: [PATCH] Updated Setting up a Git server on Windows using Git for Windows and Win32_OpenSSH (markdown) --- ...rver-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH.md | 4 ++-- 1 file changed, 2 insertions(+), 2 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 95fd316..8102ef7 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 @@ -10,9 +10,9 @@ ``` 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 repository. 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: +1. Create a central Git repository. Go to where you want to create a central repo, `git init --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` + `git init --bare c:\git\newrepo.git` 1. If you already have user private and public keys, copy the user public key to `C:\Users\{user}\.ssh\` and rename it to authorized_keys ## On Client 1. Set environment variable for git to use Win32_OpenSSH