|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|Native Node bindings to Git.|
|Pygit2||1,514||375||189||3 days ago||72||June 25, 2023||166||other||C|
|Python bindings for libgit2|
|Git2 Rs||1,452||785||856||6 days ago||115||August 28, 2023||111||apache-2.0||Rust|
|libgit2 bindings for Rust|
|Php Git||540||7 years ago||38||mit||C|
|PHP bindings for libgit2|
|Swiftgit2||521||3||2 years ago||April 21, 2015||51||mit||Swift|
|Swift bindings to libgit2|
|Node.js bindings for libgit2|
|Gift||257||7 years ago||10||mit||Swift|
|Swift bindings to libgit2. But you should use https://github.com/SwiftGit2/SwiftGit2 instead!|
|Git2r||198||153||55||5 months ago||26||January 26, 2023||82||gpl-2.0||C|
|R bindings to the libgit2 library|
|Luagit2||121||3 years ago||4||mit||C|
|Lua bindings for libgit2|
|Gitfordelphi||89||11 years ago||2||mit||Pascal|
|Delphi bindings for libgit2|
libgit2 bindings for Rust.
[dependencies] git2 = "0.18.1"
git2-rs works with stable Rust, and typically works with the most recent prior stable release as well.
Currently this library requires libgit2 1.7.1 (or newer patch versions). The source for libgit2 is included in the libgit2-sys crate so there's no need to pre-install the libgit2 library, the libgit2-sys crate will figure that and/or build that for you.
You can enable the Cargo feature
vendored-libgit2 to always compile and
statically link to a copy of libgit2. Sometimes the libgit2 on the system is
required to be found and used even when
vendored-libgit2 is activated. In
this case, you shall set the environment variable
$ git clone https://github.com/rust-lang/git2-rs $ cd git2-rs $ cargo build
Running tests and handling all of the associated edge cases on every commit
proves tedious very quickly. To automate tests and handle proper stashing and
unstashing of unstaged changes and thus avoid nasty surprises, use the
pre-commit hook found here and place it into the
.git/hooks/ with the name
pre-commit. You may need to add execution
To skip tests on a simple commit or doc-fixes, use
git commit --no-verify.
ssh feature is enabled (and it is by default) then this library depends
on libssh2 which depends on OpenSSL. To get OpenSSL working follow the
openssl crate's instructions.
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in git2-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.