Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 761 Bytes

readme.md

File metadata and controls

11 lines (9 loc) · 761 Bytes

git-mirror is a golang library to periodically mirror (bare clones) remote repositories locally. The mirror is created with --mirror=fetch hence everything in refs/* on the remote will be directly mirrored into refs/* in the local repository. it can also maintain multiple mirrored checked out worktrees on different references.

The implementation borrows heavily from kubernetes/git-sync. If you want to sync single repository on one reference then you are probably better off with kubernetes/git-sync, as it provides a lot more customisation. git-mirror should be used if multiple mirrored repositories with multiple checked out branches (worktrees) is required.