index : gitrs
A lightweight web interface for browsing Git repositories, implemented in Rust
about summary refs log tree commit diff
author Yousef Al-Harbi <yo2w86@gmail.com> 2026-11-18 08:39:43 +0300
committer Yousef Al-Harbi <yo2w86@gmail.com> 2026-11-18 08:39:43 +0300
commit 80f9521e56cc869946737ecdb18e6c51ecb7fc05 [patch]
tree cc934271f1898c4558aacb8c16db76060f3b08f7
parent 7a88f00d966275441956bef114a26b45f98dae4b
download 80f9521e56cc869946737ecdb18e6c51ecb7fc05.tar.gz

Update README.md

Diffstat

-rw-r--r-- README.md 15
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 6d6c7f2..634d3c1 100644
--- a/README.md
+++ b/README.md
@@ -43,17 +43,22 @@
  git -C /srv/git/<repo> config gitweb.owner "your-name"
  ```

## Building
## Installation

Install from crates.io or directly from the repository:

```sh
cargo build --release
# From crates.io
cargo install git-rs

# Or from a local checkout
cargo install --path .
```

To run as a `systemd` service, copy [`git-rs.service`](git-rs.service) to `/etc/systemd/system/` and enable it:
To install and start the `systemd` service:

```sh
sudo cp target/release/git-rs /usr/bin/git-rs
sudo cp git-rs.service /etc/systemd/system/git-rs.service
sudo $(which git-rs) --install-service --url 0.0.0.0 --port 80 --repos-dir /srv/git
sudo systemctl daemon-reload
sudo systemctl enable --now git-rs
```