Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 647 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 647 Bytes

patrick Build Status

Synchronize a Git repository from one place to another.

Usage

patrick = require 'patrick'

Generate a snapshot

patrick.snapshot '/repos/here', (error, snapshot) ->
  if error?
    console.error('snapshot failed', error)
  else
    console.log('snapshot succeeded')

Mirror a snapshot

patrick.mirror '/repos/there', snapshot, (error) ->
  if error?
    console.error('mirror failed', error)
  else
    console.log('mirror succeeded')