minor changes

Yanbing 2017-09-27 13:03:35 -07:00
parent 3dd08e8179
commit f8ee444f4e

@ -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 <source dir>` A directory with name `<source dir>.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 <source dir>` A directory with name `<source dir>.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 <user priviate>`
`ssh-add.exe <user priviate key>`
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
```