kaoDev / Git-Sync

tool to sync git mirror

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git sync

a small tool to sync a git repository to a mirrored location

requirements

usage

  • install dependencies with yarn install
  • configure repositories to sync in ./config.json
  • start sync process with the command yarn start

configuration

  • onlyRunOnce (true), makes sure that the program doesn't schedule further updates, so the interval setting is ignored. If you are running this program as a scheduled job make sure to set this flag to true
  • cleanRepoOnRun (false), flag to indicate if the cloned repository directory should cleaned before every run
  • syncIntervalSeconds (60), interval in seconds in which the source repository should get pulled and updates should be pushed to the target. Ignored if onlyRunOnce is set to true

About

tool to sync git mirror

License:MIT License


Languages

Language:TypeScript 100.0%