git
Version, currently 0.5.312 versions
- 0.5.3latestApr 17, 2017
- 0.5.2not indexedOct 22, 2017
- 0.5.1not indexedOct 22, 2017
- 0.5.0not indexedOct 22, 2017
- 0.4.3not indexedOct 22, 2017
- 0.4.2not indexedOct 22, 2017
- 0.4.1not indexedOct 22, 2017
- 0.4.0not indexedOct 22, 2017
- 0.3.0not indexedOct 22, 2017
- 0.2.3not indexedOct 22, 2017
- 0.2.2not indexedOct 22, 2017
- 0.1.0not indexedOct 22, 2017
github.com/crystal-git/libgit2
Yet another Crystal library for manipulating Git repositories in an object-oriented way.
17 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
git:
github: crystal-git/libgit2
version: ~> 0.5.3Then run:
shards installshard.yml
- Crystal
0.21.1- License
- MIT
- Author
- mosop
Dependencies
Runtime Dependencies
- safec0.2.1github: mosop/safec
Development Dependencies
- stdio0.1.3github: mosop/stdiodev
- crystal_plus0.1.2github: mosop/crystal_plusdev
README
# Crystal Git
Yet another Crystal library for manipulating Git repositories in its object-oriented way.
Crystal Git internally wraps libgit2 and provides the similar API.
This project is currently experimental.
[](https://travis-ci.org/mosop/git)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
git:
github: mosop/git
```
<a name="code_samples"></a>
## Code Samples
### Checkout from Remote Branches
```crystal
`git init`
`git remote add origin https://github.com/mosop/git.git`
repo = Git::Repo.open(Dir.current)
repo.remotes["origin"].checkout("master")
puts `git branch` # prints "* master"
```
### Remote URLs
```crystal
`git init`
`git remote add origin https://github.com/mosop/fetch.git`
`git remote set-url --push origin https://github.com/mosop/push.git`
remote = Git::Repo.open(Dir.current).remotes["origin"]
remote.fetch_url # => https://github.com/mosop/fetch.git
remote.push_url # => https://github.com/mosop/push.git
```
## Usage
```crystal
require "git"
```
and see:
* [Code Samples](#code_samples)
## Release Notes
See [Releases](https://github.com/mosop/git/releases).
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.5.3- Tagged
- Apr 17, 2017
- Commit
27cc31b40fc3- Crystal
0.21.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/crystal-git/libgit2
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 12