The original project is a person developed, did not do version management, I took over to build git version Management Server, convenient offline development and version management;
One cloud host, operating system: Windows Server 2008, 64-bit;
Java is already installed.
C:\users\chenyinxin>java-version
Java Version "1.7.0_71"
Java (TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot (TM) 64-bit Server VM (build 24.71-b01, Mixed mode)
Before the company used is Gitlab, feel very useful, especially online code comparison;
Then try it.
Download Gitlab Installers
Seemingly only in the Linux machine deployment, unfortunately;
What's the change?
Seemingly gitblit this can use;
http://gitblit.com/
Http://dl.bintray.com/gitblit/releases/gitblit-1.6.2.zip
Unzip to Local: D:\git\gitblit-1.6.2
Warehouse Catalog: D:\git\repository
Configure the \data\gitblit.properties file under the Gitblit directory:
Warehouse Location:
Git.repositoriesfolder= d:/git/repository
Configuration mode port:
Server.httpport = 8081
Run the Gitblit directory gitblit.cmd can open the server;
Error:
2015-04-21 15:32:59 [WARN] FAILED [email protected]{http/1.1}{0.0.0.0:80
Bayi}: Java.net.BindException:Address already in Use:bind
Java.net.BindException:Address already in Use:bind
At Sun.nio.ch.Net.bind0 (Native Method)
At Sun.nio.ch.Net.bind (Unknown Source)
At Sun.nio.ch.Net.bind (Unknown Source)
Change Port 8088:
The prompt started successfully;
Under Intranet access: http://localhost:8088/
External network access is also possible;
Start in Windows service mode;
Modify Installservice.cmd
SET arch=x86
Then double-click Run, check the service;
The installation is ready;
To configure the Administrator account password:
Users.conf
After logging in, create a repository:
Tip The repository is empty:
Download Git;https://github.com/msysgit/msysgit/releases/download/git-1.9.5-preview20150319/git-1.9.5-preview20150319.exe
Installation
Right-click inside Eclipse Project, Team-share project, choose Git;
Click Create
Go to the project directory Execution command;
Git remote add Origin ssh://[email Protected]:29418/srpm.git
Git push-u Origin Master
Right-click Git Bash here;
Error:
is because the local library has not submitted any documents;
To create your own development users:
Generate SSH Keys
Ssh-keygen-t rsa-c "[Email protected]"
Open File:
"C:\Users\Administrator\.ssh\id_rsa.pub"
Copy, copy, and add all the contents of the file.
Commit code, commit and push;
Previously used is the admin remote, changed to the newly created user;
have succeeded;
Install Sourcetree as a git client:
http://www.sourcetreeapp.com/
Very useful;
Summarize:
1, gitblit installation configuration super simple;
2, I do not seem to change the head, the function list feel no gitlab more, or how to say gitlab powerful it;
Subsequent
Start window Service Gitblit error:
"Start", "Administrative Tools", "Event Viewer"
The Gitblit service was successfully completed because of the operation. A service-specific error has been stopped.
command line startup see Error;
What the hell is this?
Seemingly installservice set less CD variables;
Set cd=d:\git\gitblit-1.6.2
SET arch=x86
Find the program that the service executes
"D:\git\gitblit-1.6.2\x86\gitblit.exe"
The command line runs the newspaper error;
A flash of the past;
Not resolved:
Deploying a git Server (Windows Server 2008)