{"id":13590375,"url":"https://github.com/ldez/go-git-cmd-wrapper","last_synced_at":"2025-04-04T13:08:30.670Z","repository":{"id":51105475,"uuid":"93330043","full_name":"ldez/go-git-cmd-wrapper","owner":"ldez","description":"A simple wrapper around git command in Go.","archived":false,"fork":false,"pushed_at":"2025-03-25T03:00:52.000Z","size":236,"stargazers_count":55,"open_issues_count":0,"forks_count":17,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T12:04:10.376Z","etag":null,"topics":["command-line","git","go","golang","golang-package","wrapper"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/ldez/go-git-cmd-wrapper/v2/git","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ldez.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"ldez","ko_fi":"ldez_oss","liberapay":"ldez","thanks_dev":"u/gh/ldez"}},"created_at":"2017-06-04T17:29:21.000Z","updated_at":"2025-03-25T03:00:56.000Z","dependencies_parsed_at":"2024-01-14T04:14:13.728Z","dependency_job_id":"7377a332-14e5-49f8-ab88-0a2bf66493d8","html_url":"https://github.com/ldez/go-git-cmd-wrapper","commit_stats":{"total_commits":119,"total_committers":5,"mean_commits":23.8,"dds":"0.32773109243697474","last_synced_commit":"3b5bf04a417f28c5430f598733d68ee73d57f8fe"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fgo-git-cmd-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fgo-git-cmd-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fgo-git-cmd-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fgo-git-cmd-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldez","download_url":"https://codeload.github.com/ldez/go-git-cmd-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247177823,"owners_count":20896720,"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":["command-line","git","go","golang","golang-package","wrapper"],"created_at":"2024-08-01T16:00:44.484Z","updated_at":"2025-04-04T13:08:30.640Z","avatar_url":"https://github.com/ldez.png","language":"Go","funding_links":["https://github.com/sponsors/ldez","https://ko-fi.com/ldez_oss","https://liberapay.com/ldez","https://thanks.dev/u/gh/ldez"],"categories":["Go"],"sub_categories":[],"readme":"# Go Git Cmd Wrapper\n\n[![Build Status](https://github.com/ldez/go-git-cmd-wrapper/workflows/Main/badge.svg?branch=main)](https://github.com/ldez/go-git-cmd-wrapper/actions)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/ldez/go-git-cmd-wrapper)](https://pkg.go.dev/github.com/ldez/go-git-cmd-wrapper/v2)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ldez/go-git-cmd-wrapper)](https://goreportcard.com/report/github.com/ldez/go-git-cmd-wrapper)\n\n[![Sponsor](https://img.shields.io/badge/Sponsor%20me-%E2%9D%A4%EF%B8%8F-pink.svg)](https://github.com/sponsors/ldez)\n\nIt's a simple wrapper around `git` command.\n\nImport `github.com/ldez/go-git-cmd-wrapper/v2/git`.\n\n```go\n// clone\noutput, err := git.Clone(clone.Repository(\"https://github.com/ldez/prm\"))\n// with debug option\noutput, err := git.Clone(clone.Repository(\"https://github.com/ldez/prm\"), git.Debug)\noutput, err := git.Clone(clone.Repository(\"https://github.com/ldez/prm\"), git.Debugger(true))\n\n// fetch\noutput, err = git.Fetch(fetch.NoTags, fetch.Remote(\"upstream\"))\noutput, err = git.Fetch(fetch.NoTags, fetch.Remote(\"upstream\"), fetch.RefSpec(\"master\"))\n\n// add a remote\noutput, err = git.Remote(remote.Add, remote.Name(\"upstream\"), remote.URL(\"https://github.com/ldez/prm\"))\n```\n\nMore examples: [Documentation](https://pkg.go.dev/github.com/ldez/go-git-cmd-wrapper/v2/git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldez%2Fgo-git-cmd-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldez%2Fgo-git-cmd-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldez%2Fgo-git-cmd-wrapper/lists"}