- 下载
Gitblit: http://www.gitblit.com/
JDK:gitblit网站显示需要jdk1.7,这里用的1.8。
Git:到官网下载最新版本 - 安装
1). 分别安装JDK,Git,配置环境变量,下载并解压Gitblit
2). 创建代码仓库
仓库位置随意,可以创建在Gitblit解压路径下
3). 修改配置文件
data/defaults.properties 复制一份改为 my.properties
修改gitblit/data/gitblit.properties
include = my.properties
修改my.properties
#端口号:
server.httpPort = 10101
#服务器ip地址
server.httpBindInterface = localhost
server.httpsBindInterface = localhost
#关联代码仓库
git.repositoriesFolder = D:/android.repositories
打开gitblitw.exe时报错,提示服务未安装:
- 安装服务
右键installService.cmd以管理员方式运行&