A plugin for fetching from a remote.
npm install --save autogit-plugin-fetch
This plugin uses the following options object:
{
remote: 'origin', // The remote to fetch from
branch: '' // The branch to fetch from, if not set the current branch will be used
}
Add this plugin to a command:
const fetch = require ( 'autogit-plugin-fetch' );
module.exports = {
commands: {
'my-command': [
fetch ({ /* YOUR OPTIONS */ })
]
}
}
MIT © Fabio Spampinato