1.0.6 • Published 6 years ago

git-controller v1.0.6

Weekly downloads
5
License
LGPLv3
Repository
github
Last release
6 years ago

Git Controller

Git-controller is a Node.js wrapper for the Git CLI, it is extened version of gitty. It's syntax resembles the Git command line syntax, executes common commands, and parses the output into operable objects.

Installation

Prerequisites

$ npm install git-controller

Testing

Run the the unit and integration tests with:

$ npm test

Usage

var git    = require('git-controller');
var myRepo = git('/path/to/repo');

Now you can call this instance of Repository's methods. For example, to execute git log for myRepo, you would do:

myRepo.log(function(err, log) {
	if (err) return console.log('Error:', err);
	// ...
});

Where are the Docs?

Pretty much everything you'll need is in lib/repository.js and it's very readable. However you can checkout List of functions available. Running the test suite will be of use as well since all public methods are tested and will print to the console.

Authenticated Repositories

Gitty no longer supports username/password authentication over SSH. You should be using SSH keys for that.

myRepo.push('origin', 'master', function(err, succ) {
	if (err) return console.log(err);
	// ...
});

Licensed under LGPLv3 license

1.0.6

6 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago