Home > git-documentdb > GitDocumentDB > sync
GitDocumentDB.sync() method#
Synchronize with a remote repository
Signature:Parameters#
| Parameter | Type | Description |
|---|---|---|
| options | RemoteOptions |
Promise<Sync >
Remarks#
Register and synchronize with a remote repository. Do not register the same remote repository again. Call unregisterRemote() before register it again.
Exceptions#
Err.RemoteAlreadyRegisteredError
Errors from constructor of Sync class.
Errors from Sync.init()