altgit.git

branch: master  Β·  37 files

$ git clone https://code.kevwe.com/git/altgit.git

FileCommits
πŸ“„.gitignore2
πŸ“„COPYING2
πŸ“„Makefile2
πŸ“Readme.md3
πŸ“„doc/api.todo3
🌐doc/templates/index.html7
πŸ“„go.mod7
πŸ“„go.sum6
πŸ”΅internal/boilerplate/boilerplate.go2
πŸ”΅internal/config/config.go12
πŸ”΅internal/gitrepo/diff.go2
πŸ”΅internal/gitrepo/files.go2
πŸ”΅internal/gitrepo/gitrepo.go8
πŸ”΅internal/gitrepo/models.go6
πŸ”΅internal/handler/handle_commit.go1
πŸ”΅internal/handler/handle_diff.go1
πŸ”΅internal/handler/handle_history.go1
πŸ”΅internal/handler/handle_log.go1
πŸ”΅internal/handler/handle_raw.go1
πŸ”΅internal/handler/handle_refs.go1
πŸ”΅internal/handler/handle_repo_list.go1
πŸ”΅internal/handler/handle_repoindex.go10
πŸ”΅internal/handler/handle_view.go1
πŸ”΅internal/handler/oidc.go2
πŸ”΅internal/rendering/data.go6
πŸ”΅internal/rendering/highlight.go5
πŸ”΅internal/rendering/readme.go4
πŸ”΅internal/rendering/rendering.go10
πŸ”΅internal/webauth/webauth.go3
πŸ”΅main.go18
πŸ“„src/.gitignore3
🌐static/css/diff.css1
🌐static/css/readme.css3
🌐static/css/style-dark.css1
🌐static/css/style-light-override-chroma.css5
🌐static/css/style.css5
🟑static/js/branch.js3
πŸ“„ README.md

AltGit

A Sustainable Git Option for Sovereign Solutions

AltGit is a self-contained server that you can use to visualize and share Git repositories.

Quick Start

Configuration File

Create the following example configuration file:

$ cat $HOME/.config/altgit-default.json 
{
	"rootdir":"/opt/share/repo",
	"interface":"127.0.0.1:8080",
	"domain": "code.kevwe.com:1234"
}

where:

  • rootdir is the directory where you store your repositories.
  • interface is the address and port where you want to run AltGit.
  • domain is the domain name where your server will be exposed. It’s
    mainly used to visualize the Git URL from where to clone the repositories.

Building AltGit

$ make

Running AltGit

You can just run the executable:

$ ./build/altgit

Running multiple instances

By specifying an instance name at runtime, and by providing a separate configuration file, it is possible
to run multiple AltGit instances.

You can do as in the example below:

$ ./build/altgit my_instance

which will expect you to provide a configuration file in $HOME/.config/altgit-my_instance.json

Obviously, if you are planning to run multiple instances, you need to make sure they bind on a different ip/port combination.

Authorization

As of now, AltGit does not implement any authentication and authorization schemes, but it is expected to come soon.
By default the repositories are published in Read-Only mode, unless you have the following two configurations:

	"readonly":"false",
	"authentication":"false",

with this config, everyone will be able to Read and Write (likely push) to your repository.

License

AltGit is authored by Paolo Lulli 2026 and is publicly available under the Affero GPL license.