Registry / utility / src-d-go-git-v4

src-d-go-git-v4

JSON →
library4.13.1gogounverified

A highly extensible git implementation in pure Go.

go get gopkg.in/src-d/go-git.v4
INSTALL
IMPORT
SIG · SRC-D-GO-GIT-V4
S
src-d-go-git-v4
utilitygov4.13.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
gopkg.in/src-d/go-git.v4

Clone a repository using go-git.

package main import ( "fmt" "gopkg.in/src-d/go-git.v4" ) func main() { r, err := git.PlainClone("/tmp/foo", false, &git.CloneOptions{ URL: "https://github.com/src-d/go-git", }) if err != nil { panic(err) } fmt.Println(r) }
Debug
Known issues
breakinggo-git v4 is in maintenance mode; consider using v5 (github.com/go-git/go-git/v5) for new projects.
fix
Migrate to github.com/go-git/go-git/v5.
affects: >=4.0.0 <5.0.0
Upgrade
Version history
4.13.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
src-d-go-git-v4 — go get src-d-go-git-v4 · libregistry