Documentation ¶
Index ¶
- type Git
- func (g *Git) BranchExist(branchName string) bool
- func (g *Git) CommitAndPush(branch, file, commit string) (err error)
- func (g *Git) GetBranches() (result []string, err error)
- func (g *Git) GetCurrentBranch() (result string, err error)
- func (g *Git) Pull(branch string) (err error)
- func (g *Git) Push() (err error)
- func (g *Git) ResetHard(branch string) (err error)
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 (*Git) CommitAndPush ¶
func (*Git) GetBranches ¶
func (*Git) GetCurrentBranch ¶
Click to show internal directories.
Click to hide internal directories.