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.