git-repository
Version, currently 1.7.117 versions
- 1.7.1latestDec 12, 2025
- 1.7.0not indexedDec 12, 2025
- 1.6.0not indexedDec 12, 2025
- 1.5.0not indexedDec 12, 2025
- 1.4.1not indexedDec 12, 2025
- 1.4.0not indexedDec 12, 2025
- 1.3.1not indexedDec 12, 2025
- 1.3.0not indexedDec 12, 2025
- 1.2.1not indexedDec 12, 2025
- 1.2.0not indexedDec 12, 2025
- 1.1.4not indexedDec 12, 2025
- 1.1.3not indexedDec 12, 2025
- 1.1.2not indexedDec 12, 2025
- 1.1.1not indexedDec 12, 2025
- 1.1.0not indexedDec 12, 2025
- 1.0.2not indexedDec 12, 2025
- 1.0.1not indexedDec 12, 2025
github.com/place-labs/git-repository
remote git repository inspection
5 stars
6 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
git-repository:
github: place-labs/git-repository
version: ~> 1.7.1Then run:
shards installshard.yml
- Crystal
- no constraint declared
Dependencies
Runtime Dependencies
- connect-proxy~> 2.0github: spider-gazelle/connect-proxy
Development Dependencies
- ameba*github: veelenga/amebadev
README
Git Client for inspecting remote git repositories
The aim of this shard is to inspect any remote git repository
- fetch repository details remotely (default branch, branches and tags)
- obtain log history without downloading any files
- fetch any branch, tag or commit without downloading history. Minimal data transfer
Installation
Add the dependency to your shard.yml:
dependencies:
git-repository:
github: place-labs/git-repository
Usage
NOTE:: We shell out to git to perform these operations
repo = GitRepository.new("https://github.com/your/repo", "optional_user", "optional_pass")
repo.default_branch # => "main"
repo.branches # => {"feature1" => "<head_hash>", "main" => "<head_hash>"}
repo.tags # => {"v1.1.0" => "<commit_hash>", "v1.0.0" => "<commit_hash>"}
repo.commits("main", depth: 5) # => [Commit]
# Fetch the head of the selected branch
repo.fetch_branch("main", "./your_repo_folder")
# Fetch the repo at a specific commit or tag
repo.fetch_commit("v1.1.0", "./your_repo_folder")
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.7.1- Tagged
- Dec 12, 2025
- Commit
b5d69a47cde0- Indexed
- yes
Dependents
Repository
github.com/place-labs/git-repository
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 17