Build a git server in Windows XP
Git does not have the concept of a client server, but to share the GIT repository, you need to use the SSH protocol (FTP, https, SFTP and other protocols can also achieve git sharing, which is not discussed in this document ), however, SSH has a client server, so if you want to share your git repository in Windows development, you must create an SSH server.
I,Install git
Using msysgit in Windows: http://code.google.com/p/msysgit/
The following describes how to install git-1.7.8-preview20111206.exe:
After the installation is complete, you can use git Bash to operate git in command line mode.
Ii. Install copssh
Before installing copssh, make sure that the ssh port is enabled on the firewall. This does not affect the installation of copssh, but affects SSH access.
Copsshis the sshserver software under Windows. baidu. this document uses copssh_4.1.0_installer.exe. The installation points are as follows:
After the installation is complete, create an administrator account root in the control panel and use this account to share ssh. Then you will see the previous svccopssh account in account management.
Open copssh Control Panel
Add the root user to the copssh user. For simple operations, password authentication is allowed.
If password authentication is not allowed, public key authentication is required, which is not discussed in this article.
Iii. Use git in copssh
Now that git and copssh have been installed, You need to enable copssh to use git commands. This not only allows remote SSH Management of git servers, but also allows git repositories to be shared through SSH. The specific operation is to copy some git command programs and dynamic link libraries to the copssh installation directory.
L copy git.exe, git-receive-pack.exe, git-upload-archive.exe, and git-upload-pack.exe under $ git \ libexec \ git-coredirectory to the $ ICW \ bin directory
L copy the libiconv-2.dll under the $ git \ bin directory to the $ ICW \ bin directory
Restart copssh.