Categorygithub.com/utilitywarehouse/git-mirror
repository
0.2.4
Repository: https://github.com/utilitywarehouse/git-mirror.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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.