Build a Git server on Windows

Source: Internet
Author: User

Build a Git server on Windows

Step 1:Download Java,: http://www.java.com/zh_CN/

Step 2:The steps for installing Java are not described in detail.

Step 3:Configure Java environment variables.

Right-click "computer" => "property" => "Advanced System settings" => "advanced" => "environment variable" => "system variable ".

New:

Variable name: JAVA_HOME

Variable value: D: \ Program Files (x86) \ Java \ jdk1.6.0 _ 21 [depending on your own installation path, I installed it on disk D]

2. New:

Variable name: CLASSPATH

Variable value:.; % JAVA_HOME %/lib/dt. jar; % JAVA_HOME %/lib/tools. jar

3. Add: Find the PATH variable and select edit. Add % JAVA_HOME %/bin; % JAVA_HOME %/jre/bin to the end of "variable value.

Step 4:Verify that Java is successfully installed.

Open command window => Enter CMD => OK.

In the command window, enter the java command javac and press Enter. If the following information appears, the installation is successful.

Step 5:Download gitb1.: http://www.gitblit.com/

Step 6:Decompress the downloaded package without installation.

Step 7:Create a folder for storing data.

More information: www.cgzhw.com game development network, the best game programming development technology website.

Step 8:Configure the gitbtings. properties file.

Find the gitbits. properties file under the data file under the Git directory, and open "Notepad.

2. Find git. repositoriesFolder (Database path) and assign it to the file directory created in Step 7.

3. Locate server. httpPort and set the http port number.

4. Locate server. httpBindInterface and set the IP address of the server. Set the IP address of your server.

5. Locate server. httpsBindInterface and set it to localhost.

6. Save and close the file.

Step 9:Run gitbloud. cmd to process files in batches.

Find the gitbmetadata. cmd file in the bitbits directory and double-click it.

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

 

Step 10:Open in the browser and now you can use GitBlit. The default username and password are admin.

Step 2:Set to start Gitblit in Windows Service mode.

Find the installService. cmd file under the gitbnames directory.

2. Open it with notepad.

3. Modify ARCH

32-bit system: set arch = x86

64-bit system: set arch = amd64

4. Add CD as the program directory

Set cd = D: \ Git \ Gitblit-1.6.0 (your actual directory)

5. Modify the startup parameter in StartParams. Leave it empty.

6. Save and close the file.

Step 2:Start Gitblit in Windows Service mode.

Double-click the installService. cmd file under the gitbloud directory (run as administrator ).

2. Under the service management of the server, you can see the existing gitblit service.

3. during normal use, it is enough to keep the service in the starting status.

All the above content is configured for the GitV 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.