{"id":21846594,"url":"https://github.com/binarybirds/git-kit","last_synced_at":"2025-04-14T13:23:10.940Z","repository":{"id":63905911,"uuid":"257194352","full_name":"BinaryBirds/git-kit","owner":"BinaryBirds","description":"GitKit is a Swift wrapper around the git command line interface.","archived":false,"fork":false,"pushed_at":"2025-03-17T21:10:52.000Z","size":20,"stargazers_count":24,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T04:44:18.359Z","etag":null,"topics":["git","swift","swift-5"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"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/BinaryBirds.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}},"created_at":"2020-04-20T06:42:23.000Z","updated_at":"2025-03-30T15:01:48.000Z","dependencies_parsed_at":"2025-03-17T11:25:48.440Z","dependency_job_id":"4e09bb64-9810-4abc-9d43-10ce1197118f","html_url":"https://github.com/BinaryBirds/git-kit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fgit-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fgit-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fgit-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryBirds%2Fgit-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinaryBirds","download_url":"https://codeload.github.com/BinaryBirds/git-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886828,"owners_count":21177754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","swift","swift-5"],"created_at":"2024-11-27T23:14:40.027Z","updated_at":"2025-04-14T13:23:10.906Z","avatar_url":"https://github.com/BinaryBirds.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitKit (🐱)\n\nGitKit is a Swift wrapper around the git command line interface.\n\n## Usage\n\nSome basic examples:\n\n```swift\nimport GitKit\n\ntry Git().run(.cmd(.config, \"--global user.name\"))\n\nlet git = Git(path: \"~/example/\")\n\ntry git.run(.cmd(.initialize))\ntry git.run(.cmd(.status))\ntry git.run(.cmd(.branch, \"-a\"))\ntry git.run(.cmd(.pull))\n\ntry git.run(.clone(url: \"https://gitlab.com/binarybirds/shell-kit.git\"))\ntry git.run(.commit(message: \"some nasty bug fixed\"))\ntry git.run(.log(1))\ntry git.run(.tag(\"1.0.0\"))\ntry git.run(.pull(remote: \"origin\", branch: \"master\"))\ntry git.run(.push(remote: \"origin\", branch: \"master\"))\ntry git.run(.create(branch: \"dev\"))\ntry git.run(.checkout(branch: \"master\"))\ntry git.run(.merge(branch: \"dev\"))\n\ntry git.run(.raw(\"log -2\"))\ntry git.run(.raw(\"rebase -i \u003chash\u003e\"))\n\n```\n\n## Install\n\nJust use the Swift Package Manager as usual:\n\n```swift\n.package(url: \"https://github.com/binarybirds/git-kit\", from: \"1.0.0\"),\n```\n\nDon't forget to add \"GitKit\" to your target as a dependency:\n\n```swift\n.product(name: \"GitKit\", package: \"git-kit\"),\n```\n\nThat's it.\n\n\n## License\n\n[WTFPL](LICENSE) - Do what the fuck you want to.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarybirds%2Fgit-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarybirds%2Fgit-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarybirds%2Fgit-kit/lists"}