Sign inSign up

delfer/docker-git-fork-sync

By delfer

Updated over 7 years ago

Keep a fork automatically synchronized with its upstream

Image
1

5.0K

delfer/docker-git-fork-sync repository overview

viossat/git-fork-sync

Simple tool to keep a Git repository synchronized with its upstream.

  • Alpine-based, 24.8 MB
  • Synchronizes all branches and tags
  • Uses Cron, no webhook, no API
  • SSH ready
  • Environment variables
    • FORK: fork URL
    • UPSTREAM: upstream URL
    • CRON: Cron expression which launchs the synchronization, * * * * * by default

Usage

Remote SSH fork on GitHub:

docker run -d -e [email protected]:rails/rails.git -e [email protected]:your_username/rails.git -v /path/ssh/private_key_rsa:/ssh/id_rsa viossat/git-fork-sync

Local fork of an HTTPS remote repo:

docker run -d -e UPSTREAM=https://gitlab.com/gitlab-org/gitlab-ce.git -e FORK=/fork -v /path/local/fork:/fork viossat/git-fork-sync

Tag summary

Content type

Image

Digest

Size

11.9 MB

Last updated

over 7 years ago

docker pull delfer/docker-git-fork-sync