Fetch your git repos and clear your cgit cache every hour.
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.
Source code | Browse Git repository |
Latest commit | 06.01.2025 17:57:25 +01:00 |
License | MIT License |