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