Mirror a git repo? Do you understand how git works? You clone the repo, and it’s effectively mirrored already, especially for something that doesn’t change much.
If you want the commits updated, then put git pull in a daily cronjob. Boom! Mirror.
True, every git pull is a ‘mirror’. Bad phrasing on my part. I was thinking more of when I set up my local gogs instance to mirror an outside/upstream git (such as from github), which really is just their term for pulling again automatically every time upstream changes.
Mirror a git repo? Do you understand how git works? You clone the repo, and it’s effectively mirrored already, especially for something that doesn’t change much.
If you want the commits updated, then put
git pull
in a daily cronjob. Boom! Mirror.True, every git pull is a ‘mirror’. Bad phrasing on my part. I was thinking more of when I set up my local gogs instance to mirror an outside/upstream git (such as from github), which really is just their term for pulling again automatically every time upstream changes.