Welcome to the toast.cafe git repository. If you’re wondering whether or not you have an account, the answer is probably not.
Convenience scripts now exist.
- Run
git cgit-setup(also sets up git-daemon) - Ask an operator to add your
~/gitto/srv/cgit(only needed for cgit) - Run
git -C ~/git/my.repo exporton any bare repository you want to export. This will open your text editor for the cgitrc. It’s ok to run multiple times.
What follows are the original instructions.
To get your repositories listed on here, follow these steps:
setfacl -m u:cgit:x ~; chmod g+x ~mkdir ~/gitsetfacl -m u:cgit:rx,d:u:cgit:rx ~/git- Ask an operator to add your ~git to /srv/cgit.
Now any git repo (please –bare only) under ~/git will be listed and become clonable as long as it contains the git-daemon-export-ok file.
Sub-directories are allowed and the path up to the git repository
becomes the category. So, for example, feel free to create
~/git/mirror/external, which will show up as
~user/mirror/external, and be shown on the index as
external in the section ~user/mirror. The
.git prefix is stripped if present, and cloning can be done
without it.
You should configure your repositories so they aren’t shown as
ownerless etc. To do this, open cgitrc(5): you can set
repository settings via the repo-specific cgitrc file
(e.g. ~/git/repo/cgitrc), or the local gitconfig
(e.g. git config --local cgit.owner).
