Skip to content
Tool to create a remote github repository and add and push content to it.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
example
lib
test
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

gitify

Tool to create a remote github repository and add and push content to it.

var gitify = require('gitify');

// change user and password to match your github account to see it in action
gitify(
  { user     :  'joe'
  , password :  'secret'
  , repo     :  'foo'   // if no repo is given, the current folder name is used
  }
  , function (err) {
    if (err) return console.error('err: ', err);
    console.log('Success');
  }
);

Installation

npm install gitify

API

gitify(opts : Object, cb : Function)

  • opts are optional and specify
    • user* : github user
    • password* : github password
    • repo : name under which the repo should be published on github (defaults to current dir name)
    • description : description of the repository (default empty)

* if user and/or password are not supplied, they will be obtained by prompting the user on the first gitify run and saved into a config at: ~/.config/gitify.js for future runs

Commandline

gitify [<repo> <description> <user> <password>]

License

MIT

Something went wrong with that request. Please try again.