ggit

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	ProxyUrl   string
	SSHKeyPath string
	WorkDir    string
}

func NewGit

func NewGit() (g *Git)

func (*Git) AddTagAndPushToRemote

func (that *Git) AddTagAndPushToRemote(tag string) error

func (*Git) CloneBySSH

func (that *Git) CloneBySSH(projectUrl string) (*git.Repository, error)

func (*Git) CommitAndPush

func (that *Git) CommitAndPush(commitMsg string) error

func (*Git) DeleteTagAndPushToRemote

func (that *Git) DeleteTagAndPushToRemote(tag string) error

func (*Git) PullBySSH

func (that *Git) PullBySSH() error

func (*Git) PushBySSH

func (that *Git) PushBySSH() error

func (*Git) SetProxyUrl

func (that *Git) SetProxyUrl(proxyUrl string)

func (*Git) SetSSHKeyPath

func (that *Git) SetSSHKeyPath(keyPath string)

func (*Git) SetWorkDir

func (that *Git) SetWorkDir(workdir string)

func (*Git) ShowLatestTag

func (that *Git) ShowLatestTag() error

Directories

Path Synopsis
Package common implements the git pack protocol with a pluggable transport.
Package common implements the git pack protocol with a pluggable transport.
Package http implements the HTTP transport protocol.
Package http implements the HTTP transport protocol.
Package ssh implements the SSH transport protocol.
Package ssh implements the SSH transport protocol.

Jump to

Keyboard shortcuts

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