aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 2e098b0ac74365d95b94f56596c3aa641b2332b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# GitAutoFetch

Fetch your git repos and clear your cgit cache every hour.

## Usage

Create a .env File with the following environment variables:

| name                 | description                                                          | default  |
|----------------------|----------------------------------------------------------------------|----------|
| GIT_DIRECTORY        | The path to the directory where your git repositories are.           | ./repos/ |
| CGIT_CACHE_DIRECTORY | The CGit cache directory, leave blank to disable clearing the cache. |          |

Now run the Program from the same directory. Alternatively you can provide the environment variables to the process.
The ``gitautofetch.service`` file could be a good template for a systemd service that runs GitAutoFetch in the background.