This is an experimental implementation of Git storage and operations on top of PostgreSQL.
Git is a very flexible platform for version control and content-addressable storage. GitSQL aims to take advantage of the server-side abilities of PostgreSQL to implement Git operations using PostgreSQL features. This is still experimental, and is not recommended for production use.
Install from Git:
bash
cargo install git-sql --git https://github.com/SpinlockLabs/GitSQL.git
Install from crates.io:
bash
cargo install git-sql
gitdb
.gitdb.toml
:```toml
[repositories.mygitrepo]
postgres-url = "postgres://127.0.0.1/gitdb"
local-path = "/path/to/my/local/repo"
[server]
bind = "0.0.0.0:3020" ```
bash
git-sql -c config.toml -r mygitrepo init
bash
git-sql -c config.toml -r mygitrepo update
bash
git-sql -c config.toml serve
bash
git clone http://localhost:8080/mygitrepo