git

package
v0.0.0-...-313507d Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	RepDir string
}

func (*Git) BranchExist

func (g *Git) BranchExist(branchName string) bool

func (*Git) CommitAndPush

func (g *Git) CommitAndPush(branch, file, commit string) (err error)

func (*Git) GetBranches

func (g *Git) GetBranches() (result []string, err error)

func (*Git) GetCurrentBranch

func (g *Git) GetCurrentBranch() (result string, err error)

func (*Git) Pull

func (g *Git) Pull(branch string) (err error)

func (*Git) Push

func (g *Git) Push() (err error)

func (*Git) ResetHard

func (g *Git) ResetHard(branch string) (err error)

Jump to

Keyboard shortcuts

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