node package manager


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.

Complete documentation is available here.

  • Node.js 0.12.x (
  • Git 1.7.x.x (
$ 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 execute git log for myRepo, you would do:

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

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);
    // ... 

Gitty was written by Gordon Hall (
Licensed under LGPLv3 license