Build a git server in Windows XP

Source: Internet
Author: User
Tags ssh access ssh port ssh server git commands

 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.