Use Gitblit to deploy your git Server on Windows

Source: Internet
Author: User

Gitblit
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: http://gitblit.com

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://code.google.com/p/gitblit/downloads/detail?name=gitblit-1.0.0.zip

2, configure the Gitblit.properties 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.

Git.repositoriesfolder = D:/git represents the warehouse path

Server.httpport = 10010 indicates port is 10010

Server.httpsport = 0 Disable HTTPS

server.httpbindinterface = Server IP Address

Server.httpsbindinterface = localhost If you disable HTTPS, this doesn't matter.

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 Gitblit.properties 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, and view the log information under program directory Logs.

Use Gitblit to deploy your git Server on Windows

Related Article

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.