Skip to main content

git-sync-js / forcePull

Module: forcePull

Table of contents​

Interfaces​

Functions​

Functions​

forcePull​

▸ forcePull(options): Promise<void>

Ignore all local changes, force reset local to remote. This is usually used in readonly blog, that will fetch content from a remote repo. And you can push content to the remote repo, let the blog update.

Parameters​

NameType
optionsIForcePullOptions

Returns​

Promise<void>

Defined in​

src/forcePull.ts:30


hardResetLocalToRemote​

▸ hardResetLocalToRemote(dir, branch, remoteName): Promise<void>

Internal method used by forcePull, does the reset --hard.

Parameters​

NameType
dirstring
branchstring
remoteNamestring

Returns​

Promise<void>

Defined in​

src/forcePull.ts:101