Node.js libgit2 asynchronous native bindings
Node bindings to the libgit2 project.
NodeGit will work on most systems out-of-the-box without any native dependencies.
npm install nodegit
If you receive errors about libstdc++, which are commonly experienced when building on Travis-CI, you can fix this by upgrading to the latest libstdc++-4.9.
sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo apt-get install libstdc++-4.9-dev
addons:apt:sources:- ubuntu-toolchain-r-testpackages:- libstdc++-4.9-dev
If you are still encountering problems while installing, you should try the Building from source instructions.
var Git = ;// Clone a given repository into the `./tmp` folder.Git// Look up this known commit.// Look up a specific file within that commit.// Get the blob contents from the file.// Display information about the blob.;
var Git = ;// Open the repository directory.GitRepository// Open the master branch.// Display information about commits on master.;
For more examples, check the
You will need to build locally before running the tests. See above.