~fabrixxm/git-serve

Git custom subcommand to serve a repo over http
git-serve 0.9.0
wiki: fix page commit info
history diff radios: first column is newest version

clone

read-only
https://git.sr.ht/~fabrixxm/git-serve
read/write
git@git.sr.ht:~fabrixxm/git-serve

You can also use your local clone with git send-email.

#git-serve

Git custom subcommand to serve a repo over http. Presents a web interface to browse the repo, history, tags and branches, and to view file diffs.

#Install

  • Clone the repo.
  • install pip, setuptools and pypa build

then

  • run python -m build
  • run pip install dist/gitserve-*-py3-none-any.whl

or

  • run pip install -e . to install linking from source
#Dependencies
  • jinja2
  • markdown
  • pygments

#Usage

git serve [-h] [--no-gravatar] [--no-markdown] [--no-pygments] [--verbose] [port]

Serve current git repo via web

positional arguments:
  port           webserver port (default: 8001)

options:
  -h, --help     show this help message and exit
  --no-gravatar  disable commit avatars
  --no-markdown  disable markdown support
  --no-pygments  disable pygments support
  --verbose      enable debug logging

The current repo will be avaiable at http://[your ip]:[port]/