Registry / utility / go-git-go-git-v5

go-git-go-git-v5

JSON →
library5.19.1gogounverified

A highly extensible pure Go implementation of Git.

go get github.com/go-git/go-git/v5
INSTALL
IMPORT
SIG · GO-GIT-GO-GIT-V5
G
go-git-go-git-v5
utilitygov5.19.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

git
github.com/go-git/go-git/v5

Clones a Git repository using go-git.

package main import ( "github.com/go-git/go-git/v5" ) func main() { r, err := git.PlainClone("/tmp/repo", false, &git.CloneOptions{ URL: "https://github.com/go-git/go-git", }) if err != nil { panic(err) } _ = r }
Debug
Known issues
breakinggo-git v5 has breaking changes from v4; ensure compatibility.
fix
Use v5 API and update imports accordingly.
affects: <5.0.0
Upgrade
Version history
5.19.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-git-go-git-v5 — go get go-git-go-git-v5 · libregistry