Gitty
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.
Installation
Prerequisites
- Node.js 0.12.x (http://nodejs.org)
- Git 1.7.x.x (http://git-scm.com)
$ npm install gitty
Testing
Run the the unit and integration tests with:
$ npm test
Usage
var git = ; // identifying the repo and using defaultsvar myRepo = ; // explicitly passing the path to the git clientvar myRepo2 = ; // specifying an options object (note all properties are optional)var myRepo3 = ;
Now you can call this instance of Repository
's methods. For example, to
execute git log
for myRepo
, you would do:
myRepo;
Authenticated Repositories
Gitty no longer supports username/password authentication over SSH. You should be using SSH keys for that.
myRepo;
Author
Gitty was written by Emery Rose Hall (emery@deadcanaries.org)
Licensed under LGPLv3 license