git-execute

0.1.0 • Public • Published

git-execute

Utility module over child_process.exec for git commands.

Usage

gitExecute(repoPath, execArguments, callback)

Example:

var gitExecute = require('git-execute');
 
// get the total number of commits
gitExecute(repoPath, [
  'rev-list',
  'HEAD',
  '--count'
], function(err, stdout, stderr) {
  if (err) { throw err; }
 
  console.log(stdout);
});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i git-execute

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • alessioalex