Use Gitblit to deploy your git Server on Windows

Source: Internet
Author: User


Previously, in Dudu's article, I saw a git server deployed on the Windows platform on IIS 7.5 with Bonobogit. Learning to deploy for a while, and finding that there are always problems like that. Bonobogit on the windows requirements of the platform is also high, so found on the Internet, and found that there are still many software support on the Windows platform for the deployment of Git Server.


Gitblit is a software that uses Java to manage Git, and itself has many feature branches. Detailed information about Gitblit can be viewed on the official website:

Less gossip, here are the installation steps for Gitblit. (Prerequisite Java Virtual machine!) )

1, download gitblit Here I am using the Gitblit Go Branch, the advantage of this branch version is that everything is integrated into a piece, do not need to install something else.

: Http://

2, configure the file.

Gitblit need to configure a few things, generally we just configure the following items can be:

Git.repositoriesfolder This is the folder where the git library is stored.

Server.httpport and Server.httpsport are ports for the HTTP protocol and HTTPS protocol, respectively.

The Server.httpbindinterface and Server.httpsbindinterface host monitors the network interface, which is the server-side access URL.

When you are finished running the Gitblit.cmd batch file, you can see the following interface:

Then enter the address of the Httpbindinterface modified above (Localhost) and port Httpport in the browser:

Enter the username and password on the interface by default to admin (this is in the users.conf file).

After entering the system, you can create Git Repository and members.

Start in Windows service mode

Gitblit can be configured to install as a Windows service using the Apache Commons Daemon method.

Open Installservice.cmd in "edit" mode

Modify ARCH = x86 (this is set to x86, please set it according to the server platform)

Add a CD to the program directory,

Set cd=youpath\gitblit-0.9.3

Modify the startup parameters in the Startparams, here we will remove its configuration, using the configuration.

Open cmd as an administrator and run the batch file.
If no exception is indicated, the service "Gitblit" is found in the "services" component and then started.
Open the calendar to enter the address to see the site just now.

Note: You can run the SC delete "service name" in CMd to delete the service; View the log information under program directory Logs.

Other Git server-side on Windows, this is a charge.


Use Gitblit to deploy your git Server on Windows

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: 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.