Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 450 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 450 Bytes

Git-Mirror

Automatically Keeps a directory full of git mirrors up to date with remote

Requires

  • Cron - for updates
  • git - for doing git operations

To start Mirroring a new GIT repo:

   cd /home/yourname/gitmirror/
   git clone --mirror [email protected]:YOURGITNAME/REPONAME

Example cron entry for keeping mirrors up to date once a day:

   32 4 * * * git-mirror ~/gitmirrors/ >>/var/log/git-mirror.log 2>&1