Skip to content

hfinucane/gitserve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitserve

a simple git => http daemon

Serves a single git repo over HTTP. URLs deliberately built to resemble a cut-down version of github's. Depends on git proper being installed to work.

$ ./gitserve --help
Usage of ./gitserve:
  -listen string
        what address to listen to (default "0.0.0.0")
  -port int
        port to listen on (default 6504)
  -repo string
        git repo to serve (default ".")

Simple usage would look like

curl http://localhost:6504/blob/master/README.md

Errata

Code is under the MPL 2.0