Git server configuration Summary

Source: Internet
Author: User

Git server configuration is not difficult, but it is not easy, because no matter how much you understand the principle, you will encounter some problems.

I will summarize the configuration process.

I chose giosis as the GIT server (as if there is only one ?), And install it in win7.

Gitosis depends on OpenSSH and is written in Python. So you need to install these things.

For convenience, I configure it in the cygwin environment.

1. Install cygwin.

2. When installing cygwin, remember to install python2.7 and OpenSSH.

3. download and install the gitosis source code.

4. It is recommended that you use git to create a server for the GIT service.

5. Run OpenSSH as a service.

6. Obtain the pub RSA file of the host to be the administrator and initialize the gitosis-Admin repository in the home directory of git.

7. Change a script file to the execution permission.

8 at this time, the administrator can go to the machine to manage the gitosis-Admin repository on the machine.

If you want to add a new repository, you must first configure the name and account of the new repository in the conf file of gitosis-Admin, otherwise, the repository cannot be pushed to the server.

To create a new repository, you only need to git init XXX without adding the -- bare parameter.

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.