Small task automation and simplification tool for bare-bones git hosting.
https://aphrodite.dev/~notebook/projects/gitmgr.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
1 year ago | |
---|---|---|
contrib | 1 year ago | |
static | 1 year ago | |
templates | 1 year ago | |
.agplv3.png | 1 year ago | |
.editorconfig | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
config.go | 1 year ago | |
git.go | 1 year ago | |
gitmgr.go | 1 year ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
templates.go | 1 year ago | |
web.go | 1 year ago |
README.md
GitMgr
Small task automation and simplification tool for bare-bones git hosting.
Usage
$ gitmgr
Every configuration option is passed through the environment.
MAX_DESCRIPTION_LENGTH
(default: 120): The maximum length (in characters) for the description displayLISTEN
(default:/run/gitmgr.sock
): The listen address+port (e.g.127.0.0.1:3000
), or the listen socketTITLE
(default:gitmgr
): The forge's titleGIT_ROOT
(default:/srv/git
): The git repository root (its contents must be writable by the daemon)EXPORTED_FILE
(default:git-daemon-export-ok
): The file used by the Git http daemon and Gitweb for making a repository publicCLONE_URL_TEMPLATE
(default: empty value): The template value used for building the clone URL. The placeholder value{{.Name}}
contains the repository name.PUBLIC_GIT_LINK_TEMPLATE
(default:edit?repository={{.}}
): The template value used for linking to the public repository page from within the project list.VERBOSE
(default: unset): If set, enables verbose logging of git repository operations (e.g. edition, deletion)URL_PREFIX
(default: empty): An optional URL prefix to provide if it doesn't sit at the website root (e.g./admin
)DEFAULT_HEAD
(default:heads/main
): The default head to set on repository init (full path relative torefs/
)
Authentication
This project doesn't handle any form of authentication at all.
If you want to handle authentication on top of this website, refer to your reverse proxy's authentication capabilities.