Git server setup under Windows platform

Source: Internet
Author: User

Git server setup under Windows platform

First step: Download the JDK

Step Two: install Java. The installation steps are no longer detailed.

Step Three: Configure the Java environment variables.

Right-click "Computer" + "Properties" + "Advanced system Settings" + "advanced" + "environment variables" = "System Variables".

    1. New:

Variable name: java_home

Variable Value: D:\Program Files (x86) \java\jdk1.6.0_21 "specifically according to your own installation path, my is installed on the D-drive"

2. NEW:

Variable name: CLASSPATH

Variable Value:%java_home%/lib/dt.jar;%java_home%/lib/tools.jar

3. Add: Locate the path variable and select Edit. Add the%java_home%/bin;%java_home%/jre/bin to the end of the variable value.

Fourth Step: Verify that Java is installed successfully.

Open the Command window and enter cmd = = OK.

In the Command window, enter the Java command: Javac, carriage return

Fifth step: download gitblit.:http://www.gitblit.com/

Sixth step: unzip the downloaded compressed package, without installation.

Seventh Step: Create a folder to store your data ===>e:\jimmy\java\gitrepository

Eighth Step: Configure the gitblit.properties defaults.properties file.

    1. Locate the gitblit.properties under the data file in the Git directory, and you will be prompted to open the Defaults.properties file and Notepad to open it.

2. Locate the Git.repositoriesfolder (database path) and assign the seventh step to create a good file directory. ===>e:\jimmy\java\gitrepository

3. Locate Server.httpport, set the port number of the HTTP protocol ==>10101

4. Locate the Server.httpbindinterface and set the IP address of the server. Set up your server IP here. ===>127.0.0.1

5. Locate Server.httpsbindinterface, set to 127.0.0.1

6. Save and close the file.

nineth Step: Run the gitblit.cmd batch file.

    1. Locate the Gitblit.cmd file in the Bitblit directory, and double-click it.

2. The running result is as follows, the operation is successful.

Tenth step: Open in the browser, you can now use Gitblit.

Git server setup under Windows platform

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.