A Node.js wrapper for the Git CLI
Gitty is a Node.js wrapper for Git. It's syntax resembles the Git command line syntax, executes common commands, and parses the output into operable objects.
$ npm install gitty
Run the the unit and integration tests with:
$ npm test
var git = require'gitty';var myRepo = git'/path/to/repo';
Now you can call this instance of
Repository's methods. For example, to
git log for
myRepo, you would do:
myRepo.logif err return console.log'Error:' err;// ...;
For now, use the source, Luke. Pretty much everything you'll need is in
lib/repository.js and it's very readable. Running the test suite will be of
use as well since all public methods are tested and will print to the console.
Gitty no longer supports username/password authentication over SSH. You should be using SSH keys for that.
myRepopush'origin' 'master'if err return console.logerr;// ...;
Gitty was written by Gordon Hall (firstname.lastname@example.org)
Licensed under LGPLv3 license