Go-Repo is just wrapper arround git commands.
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
b, err := r.CurrentBranch()
...
fmt.Println(b)
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
err = r.FetchRemoteBranch("origin", "tests")
...
err = r.Pull("origin", "tests")
...
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
r.LocalConfigSet("foo", "bar", "value"))
val, err := r.LocalConfigGet("foo", "bar")
...
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
files, err := r.Glob("**/*.md")
...
f, err := r.Open(files[0])
...