listRemotes
List remotes
param | type [= default] | description |
---|---|---|
core | string = 'default' | The plugin core identifier to use for plugin injection |
fs [deprecated] | FileSystem | The filesystem containing the git repo. Overrides the fs provided by the plugin system. |
dir | string | The working tree directory path |
gitdir | string = join(dir,'.git') | The git directory path |
return | Promise<Array<{remote: string, url: string}>> | Resolves successfully with an array of {remote, url} objects |
Example Code:
let remotes = await git.listRemotes({ dir: '$input((/))' })
console.log(remotes)