{"id":62991,"library":"go-git-go-git","title":"go-git","description":"A highly extensible git implementation in pure Go.","status":"active","version":"4.7.0+incompatible","language":"go","source_language":null,"source_url":"https://github.com/go-git/go-git","tags":["git","vcs","version-control","library"],"install":[{"cmd":"go get github.com/go-git/go-git","lang":"bash","label":"Install github.com/go-git/go-git"}],"dependencies":[],"imports":[{"symbol":"git","correct":"github.com/go-git/go-git/v5"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\tgit \"github.com/go-git/go-git/v5\"\n)\n\nfunc main() {\n\tr, err := git.PlainOpen(\".\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\th, err := r.Head()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(h.Hash())\n}","lang":"go","description":"Open an existing git repository and print the HEAD hash."},"warnings":[{"fix":"Use github.com/go-git/go-git/v5 instead of v4.","message":"Version 4.x uses +incompatible; v5 is the current major version with proper Go modules support.","severity":"breaking","affected_versions":"<5.0.0"}],"env_vars":null,"search_vec":"'control':16 'extens':6 'git':3,7,12 'go':2,11 'go-git':1 'high':5 'implement':8 'librari':17 'pure':10 'vcs':13 'version':15 'version-control':14","created_at":"2026-06-17T16:38:37.085943+00:00","updated_at":"2026-06-17T16:38:37.085943+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-git/go-git","github":"https://github.com/go-git/go-git","docs":"https://pkg.go.dev/github.com/go-git/go-git#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}