{"id":50745070,"url":"https://github.com/ibrahimcetin/SwiftGitX","last_synced_at":"2026-06-27T23:00:51.529Z","repository":{"id":246812953,"uuid":"822252659","full_name":"ibrahimcetin/SwiftGitX","owner":"ibrahimcetin","description":"A modern Swift wrapper for libgit2 that brings Git operations to Swift apps.","archived":false,"fork":false,"pushed_at":"2025-12-01T10:17:40.000Z","size":279,"stargazers_count":154,"open_issues_count":2,"forks_count":20,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-06-06T15:04:45.634Z","etag":null,"topics":["git","ios","libgit2","macos","swift"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/ibrahimcetin/SwiftGitX/~/documentation/SwiftGitX","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibrahimcetin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-30T17:58:39.000Z","updated_at":"2026-06-03T17:18:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"8300a20b-1149-4af2-925e-6fe9e98fdbbd","html_url":"https://github.com/ibrahimcetin/SwiftGitX","commit_stats":null,"previous_names":["ibrahimcetin/swiftgitx"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/ibrahimcetin/SwiftGitX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcetin%2FSwiftGitX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcetin%2FSwiftGitX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcetin%2FSwiftGitX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcetin%2FSwiftGitX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibrahimcetin","download_url":"https://codeload.github.com/ibrahimcetin/SwiftGitX/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcetin%2FSwiftGitX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34870654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","ios","libgit2","macos","swift"],"created_at":"2026-06-10T20:00:38.587Z","updated_at":"2026-06-27T23:00:51.522Z","avatar_url":"https://github.com/ibrahimcetin.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# SwiftGitX\n[![CI](https://github.com/ibrahimcetin/SwiftGitX/actions/workflows/swift.yml/badge.svg)](https://github.com/ibrahimcetin/SwiftGitX/actions/workflows/swift.yml)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fibrahimcetin%2FSwiftGitX%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ibrahimcetin/SwiftGitX)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fibrahimcetin%2FSwiftGitX%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/ibrahimcetin/SwiftGitX)\n\nWelcome to SwiftGitX! 🎉\n\nSwiftGitX is a modern Swift wrapper for [libgit2](https://libgit2.org). It's designed to make working with Git in Swift easy and efficient. Plus, it fully supports the [Swift Package Manager](https://github.com/swiftlang/swift-package-manager) and has no external dependencies.\n\n```swift\nlet url = URL(string: \"https://github.com/ibrahimcetin/SwiftGitX.git\")!\nlet repository = try await Repository.clone(from: url, to: URL(string: \"/path/to/clone\")!)\n\nlet latestCommit = try repository.HEAD.target as? Commit\n\nlet main = try repository.branch.get(named: \"main\")\nlet feature = try repository.branch.create(named: \"feature\", from: main)\ntry repository.switch(to: feature)\n```\n\n## Why Choose SwiftGitX?\n\nSwiftGitX offers:\n\n- **Swift concurrency support**: Take advantage of async/await for smooth, non-blocking Git operations.\n- **Throwing functions**: Handle errors gracefully with Swift's error handling.\n- **Full SPM support**: Easily integrate SwiftGitX into your projects.\n- **Intuitive design**: A user-friendly API that's similar to the Git command line interface, making it easy to learn and use.\n- **Wrapper, not just bindings**: SwiftGitX provides a complete Swift experience with no low-level C functions or types. It also includes modern Git commands, offering more functionality than other libraries.\n\n## Adding SwiftGitX to Your Project\n\nTo get started, just add SwiftGitX to your project:\n\n1. File \u003e Add Package Dependencies...\n2. Enter https://github.com/ibrahimcetin/SwiftGitX.git\n3. Select \"Up to Next Major\" with \"0.1.0\"\n\nOr add SwiftGitX to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/ibrahimcetin/SwiftGitX.git\", from: \"0.1.0\"),\n]\n```\n\n## Documentation\n\nThe documentation for `releases` and `main` are available here:\n\n* [0.x.x](https://swiftpackageindex.com/ibrahimcetin/SwiftGitX/~/documentation/SwiftGitX)\n* [`main`](https://swiftpackageindex.com/ibrahimcetin/SwiftGitX/main/documentation/SwiftGitX)\n\n## Building and Testing\n\nSwiftGitX is easy to build and test. It requires only Swift, no additional system dependencies.\nTo build SwiftGitX, run:\n```bash\nswift build\n```\nTo test SwiftGitX, run:\n```bash\nswift test\n```\n\n## Contributing\n\nWe welcome contributions! Whether you want to report a bug, request a feature, improve documentation, or add tests, we appreciate your help.\n\n**For developers**, when contributing, please ensure to add appropriate tests and documentation to keep our project robust and well-documented.\n\n---\n\nThank you for considering SwiftGitX for your project. I'm excited to see what you’ll build! 😊\n\n---\n\nFeel free to let me know if there's anything specific you'd like to adjust further! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimcetin%2FSwiftGitX","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibrahimcetin%2FSwiftGitX","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimcetin%2FSwiftGitX/lists"}