Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gitlist

> 开发工具
Open source

An elegant and modern git repository viewer

3.0K stars0 likes2 views
WebsiteGitHub

About

An elegant and modern git repository viewer

GitList: an elegant git repository viewer

GitList is an elegant and modern web interface for interacting with multiple git repositories. It allows you to browse repositories using your favorite browser, viewing files under different revisions, commit history, diffs. It also generates RSS/Atom feeds for each repository, allowing you to stay up-to-date with the latest changes anytime, anywhere. GitList was written in PHP, on top of the Symfony framework and powered by the Twig template engine. This means that GitList is easy to install and easy to customize. Also, the GitList interface was made possible due to Bootstrap.

Features

  • Multiple repository support
  • Multiple branch support
  • Multiple tag support
  • Commit history, blame, diff
  • RSS/Atom feeds
  • Syntax highlighting via CodeMirror or Ace
  • Repository statistics

Screenshots

Requirements

In order to run GitList on your server, you'll need:

  • PHP 8.4
    • php-xml
    • php-mbstring
  • git 2
  • Webserver (Apache, nginx)

Installation

  • Download the latest release or the nightly build and decompress to your /var/www/gitlist folder, or anywhere else you want to place GitList.
    • Do not use the source release, or download a branch or tag from GitHub. It is not suited for end-users, only development.
  • Open up the config/config.yml and configure your installation. You'll have to provide where your repositories are located.
    • Alternatively, you can export the environment variable DEFAULT_REPOSITORY_DIR with the directory containing your repositories
  • Create the cache and log folder and give it read/write permissions to your web server user:
bash
cd /var/www/gitlist
mkdir -p var/cache
chmod 777 var/cache
mkdir -p var/log
chmod 777 var/log
  • Point your webserver to the /var/www/gitlist/public folder, where index.php is.

That's it, installation complete! If you're having problems, check the Troubleshooting page.

Development

GitList comes with a Docker Compose configuration intended for development purposes. It contains a PHP image with all necessary extensions, including the headless Chromium and chromedriver binaries used by the end-to-end test suite.

To get started, just clone the repo and run the setup script:

bash
git clone https://github.com/klaussilveira/gitlist.git
make setup

It should take care of letting you know what is missing, if anything. Once finished, run the test suite to make sure everything is in order:

bash
make test
make acceptance

The end-to-end suite lives in tests/e2e and runs on Symfony Panther. Pages that do not depend on JavaScript are driven over plain HTTP, the rest through headless Chromium. Both share a web server that Panther starts on port 9080 against the repositories in tests/fixtures. Running it outside the container needs chromedriver on your PATH.

There are other commands available. To learn more:

bash
make help

Frontend assets

Assets are handled by Symfony AssetMapper, so there is no bundler and no Node.js in the asset pipeline. Stylesheets are compiled by symfonycasts/sass-bundle, which downloads a standalone Sass binary into var/dart-sass on first use. That directory is a named Docker volume rather than part of the project bind mount, so the container and the host each keep the build matching their own C library. While working on stylesheets, keep them compiling with:

bash
make watch

Bootstrap arrives twice on purpose: twbs/bootstrap provides the Sass sources that the theme customizes, and the importmap.php entry provides the browser module. Keep both pinned to the same version when upgrading.

The Ace and CodeMirror runtimes live in public/vendor because both resolve the URLs of their syntax modes at runtime, which means the asset mapper cannot rename their files. That directory is committed and regenerated with bin/vendor-assets.

The icon sprite in assets/themes/default/templates/icons.html.twig is derived from Ionicons 4.6.3, MIT licensed, Copyright (c) 2015-present Ionic (http://ionic.io/).

Contributing

If you are a developer, we need your help. GitList is small, but we have lots of stuff to do. Some developers are contributing with new features, others with bug fixes. But you can also dedicate yourself to refactoring the current codebase and improving what we already have. This is very important, we want GitList to be a state-of-the-art application, and we need your help for that.

  • Stay tuned to possible bugs, suboptimal code, duplicated code, overcomplicated expressions and unused code
  • Improve the test coverage by creating unit and functional tests

If you are not a developer, you can also contribute by helping translate GitList.

Further information

If you want to know more about customizing GitList, check the Customization page on the wiki. Also, if you're having problems with GitList, check the Troubleshooting page. Don't forget to report issues and suggest new features! :)

Legacy

GitList was born in May 2012, a time were Composer was still a novelty and Silex was all the rage. We have tried to maintain GitList as-is for as long as possible, but the PHP ecosystem changed so much in all those years that it became too time consuming to maintain it. Thus, 2.0 was born on top of Symfony 6 and we'll keep moving with the times. 3.0 follows Symfony 8.

Legacy, however, is still available here and we will try to keep it secure and working on newer PHP versions.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPgitgitlistphprepository-management

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具