Versions in this module Expand all Collapse all v1 v1.6.11 Feb 20, 2018 v1.6.10 Jan 18, 2018 Changes in this version + type Git struct + func Clone(ctx context.Context, gpg, repo, path string) (*Git, error) + func Init(ctx context.Context, path, gpg, signKey, userName, userEmail string) (*Git, error) + func Open(path, gpg string) (*Git, error) + func (g *Git) Add(ctx context.Context, files ...string) error + func (g *Git) AddRemote(ctx context.Context, remote, url string) error + func (g *Git) Cmd(ctx context.Context, name string, args ...string) error + func (g *Git) Commit(ctx context.Context, msg string) error + func (g *Git) ConfigGet(ctx context.Context, key string) (string, error) + func (g *Git) ConfigSet(ctx context.Context, key, value string) error + func (g *Git) HasStagedChanges(ctx context.Context) bool + func (g *Git) InitConfig(ctx context.Context, signKey, userName, userEmail string) error + func (g *Git) IsInitialized() bool + func (g *Git) Pull(ctx context.Context, remote, branch string) error + func (g *Git) Push(ctx context.Context, remote, branch string) error + func (g *Git) PushPull(ctx context.Context, op, remote, branch string) error + func (g *Git) SetSignKey(ctx context.Context, sk string) error + func (g *Git) Version(ctx context.Context) semver.Version