Skip to content

alessioalex/git-execute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utility module over `child_process.exec` for git commands.

Resources

Stars

Watchers

Forks

Packages

No packages published