How to use the simple-git.add function in simple-git

To help you get started, we’ve selected a few simple-git examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alt-code / TaskLights / src / blink.js View on Github external
fs.writeFile(dataFile, JSON.stringify(obj, null, 2), function(err) 
    {
        require('simple-git')(directory)
            .add('.')
            .commit(options.message)
            .push('origin', 'master');
    });
github alt-code / TaskLights / src / blink2.js View on Github external
fs.writeFile(dataFile, JSON.stringify(obj, null, 2), function(err) 
    {
        require('simple-git')(directory)
            .add('.')
            .commit(options.message)
            .push('origin', 'master');
    });