git-sync-js / commitAndSync / ICommitAndSyncOptions
Interface: ICommitAndSyncOptions
commitAndSync.ICommitAndSyncOptions
Table of contents
Properties
Properties
commitMessage
• Optional commitMessage: string
the commit message
Defined in
commitOnly
• Optional commitOnly: boolean
Defined in
defaultGitInfo
• Optional defaultGitInfo: Object
Optional fallback of userInfo. If some info is missing in userInfo, will use defaultGitInfo instead.
Type declaration
| Name | Type |
|---|---|
branch | string |
email | string |
gitUserName | string |
remote | string |
Defined in
dir
• dir: string
wiki folder path, can be relative
Defined in
filesToIgnore
• Optional filesToIgnore: string[]
if you want to use a dynamic .gitignore, you can passing an array contains filepaths that want to ignore
Defined in
logger
• Optional logger: ILogger
Defined in
remoteUrl
• Optional remoteUrl: string
the storage service url we are sync to, for example your github repo url When empty, and commitOnly===true, it means we just want commit, without sync
Defined in
userInfo
• Optional userInfo: IGitUserInfos
user info used in the commit message When empty, and commitOnly===true, it means we just want commit, without sync