Skip to content

A tool for selectively mirroring Git repositories.

License

Notifications You must be signed in to change notification settings

DanNixon/git-collage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d7cc15f · Mar 7, 2025
Feb 1, 2025
Jan 16, 2025
Jan 6, 2025
Sep 27, 2023
Sep 27, 2023
Mar 7, 2025
Mar 1, 2025
May 21, 2022
Oct 12, 2022
Mar 7, 2025
Jan 16, 2025
Jan 16, 2025
Oct 7, 2023

Repository files navigation

git-collage CI Crates.io dependency status

A tool for selectively mirroring Git repositories.

git-collage was created to fill my desire to backup my own Git repos and mirror the parts of 3rd party repos I care about. To this end the key features this tool has are:

  • Ability to discover repositories (currently only from GitHub, but more can be added easily)
  • Ability to filter refs that are mirrored, preventing "useless" refs being created locally (e.g. feature branches, GitHub PR merge commits)
  • Is a single binary that can be scheduled via cron or systemd (personally I did not want to run a service for what is essentially a time scheduled backup job)

Usage

See git-collage --help for syntax and examples for a sample configuration file.

Things to note:

  • Console output below INFO level may contain sensitive information (e.g. Github tokens).
  • GitHub tokens must be generated with the repo scope.