git-rest

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: BSD-2-Clause Imports: 2 Imported by: 0

README

git-rest

Lightweight REST API server for reading and writing files in a git repository. Automatic git commit and push on writes. Periodic git pull to stay in sync.

Features

  • GET /api/v1/files/*path — read file
  • POST /api/v1/files/*path — create/update file + git commit + push
  • DELETE /api/v1/files/*path — delete file + git commit + push
  • Periodic git pull (configurable interval)
  • No database, no web UI — just a REST API for a git repo

Quick Start

git-rest \
  --repo /path/to/repo \
  --listen :8080 \
  --pull-interval 30s

License

BSD-2-Clause

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
git
git/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL