---
title: "基于Java的Git在线管理工具：Gitblit"
author: "Andy_Dou"
date: "2014-08-05T15:03:52Z"
tags: []
categories: ["开源软件"]
slug: "java-git-gitblit"
draft: false
lastmod: "2014-08-05T15:06:16Z"
id: 2100444
url: "https://ideabean.iteye.com/blog/2100444"
---

Gitblit是一个开源，纯Java堆栈用于管理，查看和部署Git服务。 以下它的详细特性：

## Standard Features (GO/WAR)

- JGit SmartHTTP servlet
- Browser and git client authentication
- Four per-repository access restriction configurations with a Read-Only control flag
  
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160741_999.png) Anonymous View, Clone & Push
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160741_213.png) Authenticated Push
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160742_989.png) Authenticated Clone & Push
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160742_872.png) Authenticated View, Clone & Push
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160743_772.png) Freeze repository (i.e. deny push, make read-only)
- Six per-user/team repository access permissions
  
  - **V** (view in web ui, RSS feeds, download zip)
  - **R** (clone)
  - **RW** (clone and push)
  - **RWC** (clone and push with ref creation)
  - **RWD** (clone and push with ref creation, deletion)
  - **RW+** (clone and push with ref creation, deletion, rewind)
- Optional feature to allow users to create personal repositories
- Optional feature to fork a repository to a personal repository
- Optional feature to create a repository on push
- Experimental built-in Garbage Collection
- Ability to federate with one or more other Gitblit instances
- RSS/JSON RPC interface
- Java/Swing Gitblit Manager tool
- Gitweb inspired web UI
- Responsive web UI that subtracts elements to be usable on phones, tablets, and desktop browsers
- Groovy pre- and post- push hook scripts, per-repository or globally for all repositories
- Email push notifications (via sendmail.groovy push script)
- Lucene indexing of specified repository branches
- Administrators may create, edit, rename, or delete repositories through the web UI or RPC interface
- Administrators may create, edit, rename, or delete users through the web UI or RPC interface
- Administrators may create, edit, rename, or delete teams through the web UI or RPC interface
- Repository Owners may edit repositories through the web UI
- Administrators and Repository Owners may set the default branch through the web UI or RPC interface
- LDAP authentication and optional LDAP-controlled Team memberships
- Redmine authentication
- Gravatar integration
- Git-notes display support
- Submodule support
- Push log based on a hidden, orphan branch refs/gitblit/pushes
- Fanout PubSub notifications service for self-hosted [Sparkleshare](http://sparkleshare.org/) use
- gh-pages display support (Jekyll is not supported)
- Branch metrics (uses Google Charts)
- HEAD and Branch RSS feeds
- Blame annotations view
- Dates can optionally be displayed using the browser's reported timezone
- Display of Author and Committer email addresses can be disabled
- Case-insensitive searching of commit messages, authors, or committers
- Dynamic zip downloads feature
- Markdown file view support
- Syntax highlighting for popular source code types
- Customizable regular expression substitution for commit messages (i.e. bug or code review link integration)
- Single text file for users configuration
- Optional utility pages
  
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160743_235.png) Docs page which enumerates all Markdown files within a repository
  - ![基于Java的Git在线管理工具：Gitblit](http://static.open-open.com/lib/uploadImg/20130615/20130615160744_119.png) **readonly** Ticgit ticket pages (based on last MIT release bf57b032 2009-01-27)
- Translations
  
  - English
  - Japanese
  - Spanish
  - Polish
  - Korean
  - Brazilian Portuguese
  - Dutch

## Gitblit GO Features

- Out-of-the-box integrated stack requiring minimal configuration
- Automatic generation of ssl certificate for https communications
- Integrated GUI tool to facilitate x509 PKI including ssl and client certificate generation, client certificate revocation, and client certificate distribution
- Single text file for configuring server and gitblit
- A Windows service installation script and configuration tool
- Built-in AJP connector for Apache httpd

## Limitations

- HTTP/HTTPS are the only supported Git protocols
- Built-in access controls are not path-based, they are repository-based.

 

Gitblit官网地址：[http://gitblit.com/](http://gitblit.com/)