GitXplorerGitXplorer
l

go-git-cmd-wrapper

public
56 stars
17 forks
0 issues

Commits

List of commits on branch main.
Verified
6a2b3260af8f60dd221c3df13fa4858fdb99ab1f

chore: update funding

lldez committed 12 days ago
Unverified
92589e2b62cdfeb7536f70a7dead13fd4bf88cf5

chore: update linter

lldez committed a month ago
Verified
f66e7f55187f9e10ba3bf8284d8fca0b525cda9f

feat(clone): add no-tags flag (#10)

PPawka committed a month ago
Unverified
3b5bf04a417f28c5430f598733d68ee73d57f8fe

chore: update linter

lldez committed 4 months ago
Verified
eae3d3cf7c92414d504a54e23d806d545cfe82ff

docs: add contributing guide

lldez committed 4 months ago
Unverified
0bbec9342815aa581500cf2be654cab5b0fda2bb

feat(stash): add HyphenHyphen

lldez committed 7 months ago

README

The README file for this repository.

Go Git Cmd Wrapper

Build Status PkgGoDev Go Report Card

Sponsor

It's a simple wrapper around git command.

Import github.com/ldez/go-git-cmd-wrapper/v2/git.

// clone
output, err := git.Clone(clone.Repository("https://github.com/ldez/prm"))
// with debug option
output, err := git.Clone(clone.Repository("https://github.com/ldez/prm"), git.Debug)
output, err := git.Clone(clone.Repository("https://github.com/ldez/prm"), git.Debugger(true))

// fetch
output, err = git.Fetch(fetch.NoTags, fetch.Remote("upstream"))
output, err = git.Fetch(fetch.NoTags, fetch.Remote("upstream"), fetch.RefSpec("master"))

// add a remote
output, err = git.Remote(remote.Add, remote.Name("upstream"), remote.URL("https://github.com/ldez/prm"))

More examples: Documentation