Build with gitblit1.8
First you install the JDK
Then download Gitblit, here to a csdn download
https://download.csdn.net/download/nietzsche0/10482683
Unzip the Gitblit compressed package into any directory and enter the data directory to edit the defaults file:
Find Git.repositoriesfolder, set as your folder
Server.httpport set to any infrequently used port (set to 10101 here)
Server.httpbindinterface set to IP
Server.httpsbindinterface set to localhost
Locate Gitblit in the Gitblit installation directory and double-click Start (Manage remote account), after successful startup, enter http://IP:10101 in the browser
The default password is Admin,admin
Appendix:
If you prefer to run as a service under Windows, modify the Installservice file in the installation directory
32-bit System arch=x86 64-bit system ARCH=AMD64, and then double-click Execute (Admin account) after modifying.
Under Windows Git Server Setup