Skip to content

DerpKitten/node-sgit

Repository files navigation

Node-sgit v0.1

build status

Installation

sgit requires node 0.10, CMake 2.6 and gcc. Installation via NPM:

npm install sgit

What?

Simple node bindings to the libgit2 C library that permit creating repositories, initializing repositories, commiting to them quickly and easily, pulling versions of files and pulling a history of revisions.

sgit right now supports:

  • creating repositories locally
  • commiting files to repositories locally
  • viewing commit log locally

License

sgit is available under the MIT License. See the LICENSE file for more information.

Contributing

To contribute please create a fork on github and make a pull request with your changes.

Building

Next, you need to install the dependencies for sgit and build it. In the sgit repo root directory, run:

git submodule init
git submodule update 
npm install node-gyp
./node_modules/.bin/node-gyp configure
./node_modules/.bin/node-gyp build

Installing Manually

Copy the parent directory of the now built module to the node_modules directory of your project. Include the module using: sgit = require('sgit');