UNPKG

git-init

Version:
16 lines (12 loc) 265 B
const exec = require('child_process').exec module.exports = init // initialize a git repo // (str, fn) -> null function init (path, cb) { if (typeof path === 'function') { cb = path path = '' } path = path || '' exec('git init -q ' + path, cb) }