Skip to content

gbdev/forge-sync

Repository files navigation

forge-sync

Utilities to help open source projects maintain a presence on multiple Git forges simultaneously.

The goal is to make it easy for repositories currently hosted on GitHub to also publish to an additional remote (e.g. Codeberg), keeping both git forges in sync requiring minimal manual intervetion.

Tools

main.py: push repositories to mirror forge

Reads a config.yaml file listing source/destination repository pairs, ensures each destination repository exists on Codeberg, clones from the source, and pushes a full mirror to the destination.

python push_to_mirror.py

generate_config.py: generate config from a GitHub org

Fetches all public, non-archived repositories from a GitHub organisation and generates a ready-to-use config.yaml.

python generate_config.py <source-org> <destination-org-url> > config.yaml

# Example
python generate_config.py gbdev https://codeberg.org/gbdev > config.yaml

About

Utilities to help open source projects maintain a presence on multiple Git forges simultaneously.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors