Skip to content

omegaup/githttp

Repository files navigation

githttp

Documentation Go Report Card

A Go implementation of Git's HTTP "smart" protocol.

Minimalistic example with git bare repositories (with the .git extension) in the git_repositories/ directory:

package main

import (
	"net/http"

	"github.com/omegaup/githttp"
)

func main() {
	panic(http.Server{
		Addr:    ":80",
		Handler: githttp.NewGitServer(githttp.GitServerOpts{
			RootPath:     "git_repositories",
			EnableBrowse: true,
		}),
	}.ListenAndServe())
}

About

A Go implementation of Git's HTTP "smart" protocol.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages