地址:https://gitblit.github.io/gitblit/
-
orange pi安装了armbian -
?拷贝gitblit.tar.gz到orange pi上解压 - 进入/home/andrew/program/gitblit/
- vim? data/gitblit.properties
# COMMA-DELIMITED
# SINCE 1.7.0
include = defaults.properties
#
# Define your overrides or custom settings below
#
#todo: wulong
git.repositoriesFolder = /mnt/u/work/gitblit/git
git.sshPort = 9999
git.sshKeysFolder = /mnt/u/work/gitblit/ssh
server.httpPort = 0
server.httpsPort = 9998
#server.httpsBindInterface = localhost
#server.httpsBindInterface = 0.0.0.0
server.certificateAlias = localhost
#end wulong
#!/bin/bash
ROOT=$(pwd)
cd /home/andrew/program/gitblit-191
#java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data
java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data
cd $ROOT
#添加开机启动
nohup /home/andrew/program/gitblit/gitblit.sh &
exit 0
-
在客户端浏览器里访问 https://192.168.0.101:9998 -
在弹出的gitblit界面用初始账号 admin 密码 admin登陆 修改密码xxxx -
添加用户 - 生成ssh key添加到gitblit对应账户下?
ssh-keygen -t rsa -C "your_email@example.com"
在 /c/Users/andrew/.ssh 里看到?id_rsa和id_rsa.pub文件。
打开id_rsa.pub,把里面的ssh-key复制粘贴到gitblit对应账号的 "用户中心"——>"SSH-Keys"里面
?
|