Since the project has been using Git as a version management, their understanding of git is not familiar with how to use, so prepare to learn more about git and some of the use of common commands, so simply put the service on the rack, through their own PC as the server and the role of the client to toss ... This article mainly introduces the construction of the GIT server under the Windows platform, as follows:
One: Download Java, address: http://www.java.com/zh_CN/
Two: Install Java. Installation steps are no longer detailed.
Three: Configure the Java environment variables.
System variables, advanced, advanced system settings, properties, right-click Computer New:
1. Variable Name: java-home
Variable value: D:\ProgramFiles\Java\jdk1.7.0_25 "Depending on your own installation path here."
2. Variable Name: Class-path
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 "note here before adding the first at the end; Semicolon ".
Four: Verify that Java is installed successfully. Open the Command Window "Microsoft key +r" input cmd-> enter.
Enter Javac carriage return:
As it appears, the installation succeeds.
V: Download gitblit.:http://www.gitblit.com/
Six: Unzip the downloaded compressed package, without installation.
Seven: Create a folder to store your data. Gitrepository
Eight: Configure the Gitblit.properties file.
1. Locate the Gitblit.properties file under the data file in the Git directory, and "Notepad" or another text editor opens.
2. Locate the Git.repositoriesfolder (database path) and assign the seventh step to create a good file directory.
3. Locate the Server.httpport, set the port number of the HTTP protocol
4. Locate the Server.httpbindinterface and set the IP address of the server. Set up your server IP here.
5. Locate server.httpsbindinterface, set to localhost, and then save the closed file.
Nine: Run the gitblit.cmd batch file.
1.gitblit-1.6.2 the Gitblit.cmd file in the directory, double-click it.
2. The result of the operation is as follows, success.
Ten: Open in the browser, you can now use Gitblit, the default user name password is: admin.
11: Set the Windows Service mode to start Gitblit.
1.gitblit-1.6.2 directory, locate the Installservice.cmd file.
1. Modify ARCH
32-bit system: SET arch=x86
64-bit system: SET ARCH=AMD64
2. Add CD to program directory
SET cd=d:\programfiles\gitblit-1.6.2 (your actual directory)
3. Modify the startup parameters in the Startparams, and empty it. Then save the file.
12: Start Gitblit in Windows service mode.
1. Double-click the Installservice.cmd file (run as Administrator) in the gitblit-1.6.2 directory.
2. Under the service management of the server, you can see the existing Gitblit service.
But the service never starts ... This setting is as follows:
Then reboot successfully. Puzzled.. Because I am obviously a 64-bit machine.
OK, here is the end, after use to keep this service is the boot state on it.
The main reference sources of this paper: http://www.2cto.com/os/201408/327637.html;
Git server setup under Windows platform