Gitblit is an open-source Java tool with a single-stack solution to manage Git repositories. This post will cover how to install Gitblit on CentOS.
- Download latest JDK
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/8u71-b15/jdk-8u71-linux-x64.rpm"
- Unpack JDK
# rpm -Uvh jdk-8u71-linux-x64.rpm
- Set
JAVA_HOME
# echo "export JAVA_HOME=/usr/java/jdk1.8.0_71" > /etc/profile.d/java.sh
- Reset profile
# . /etc/profile
- Install Gitblit
wget "http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.tar.gz"
- Un-tar the package
# tar -xvzf gitblit-1.7.1.tar.gz
- Add HTTP port to
data/gitblit.properties
server.httpPort = 8080
- Run Gitblit
# ./gitblit.sh