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
| Name | Type |
|---|---|
options | IForcePullOptions |
Returns
Promise<void>
Defined in
hardResetLocalToRemote
▸ hardResetLocalToRemote(dir, branch, remoteName): Promise<void>
Internal method used by forcePull, does the reset --hard.
Parameters
| Name | Type |
|---|---|
dir | string |
branch | string |
remoteName | string |
Returns
Promise<void>