sgit requires node 0.10
, CMake 2.6
and gcc
. Installation via NPM:
npm install sgit
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
sgit is available under the MIT License. See the LICENSE file for more information.
To contribute please create a fork on github and make a pull request with your changes.
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
Copy the parent directory of the now built module to the node_modules directory of your project. Include the module using: sgit = require('sgit');