npm.io
1.0.3 • Published 7 years ago

autogit-command-github-publish

Licence
MIT
Version
1.0.3
Deps
7
Size
9 kB
Vulns
0
Weekly
0
Stars
4

Autogit Command - Github Publish

A command for publishing repositores to GitHub.

Install

npm install --save autogit-command-github-publish

Usage

Options

This command uses the following options object:

{
  remote: 'origin', // Using this name for the newly created repository
  token: '', // GitHub token
  message: 'Initial commit', // Commit message for the initial commit, set it to false to disable this
  force: false, // Don't ask for confirmation
  private: false, // Don't publish as private
  ssh: true // Use SSH rather than HTTPS
}
Configuration

Add this command to your configuration:

const githubPublish = require ( 'autogit-command-github-publish' );

module.exports = {
  commands: {
    'github-publish': githubPublish ({ /* YOUR OPTIONS */ })
  }
}
CLI

Call it from the CLI with:

autogit github-publish

License

MIT Fabio Spampinato

Keywords