gitcmd

package
v0.10.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitCmd

type GitCmd struct {
	CMD string
}

func New

func New() (GitCmd, error)

func (GitCmd) Checkout added in v0.10.27

func (g GitCmd) Checkout(path, branch string) error

func (GitCmd) Clone

func (g GitCmd) Clone(url, reponame string, bare bool) error

func (GitCmd) Fetch added in v0.10.27

func (g GitCmd) Fetch(path string) error

func (GitCmd) MirrorPull added in v0.10.27

func (g GitCmd) MirrorPull(path string) error

func (GitCmd) NewRemote added in v0.10.27

func (g GitCmd) NewRemote(name, url, path string) error

func (GitCmd) Pull

func (g GitCmd) Pull(bare bool, repopath string) error

func (GitCmd) Push added in v0.10.27

func (g GitCmd) Push(path, remote string) error

func (GitCmd) SSHPush added in v0.10.27

func (g GitCmd) SSHPush(path, remote, key string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL