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/git
Yet another Crystal library for manipulating Git repositories in its object-oriented way.
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
git:
github: crystal-git/git
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.
Installation
Add this to your application's shard.yml:
dependencies:
git:
github: mosop/git
Code Samples
Checkout from Remote Branches
`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
`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
require "git"
and see:
Release Notes
See 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/git
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 12