hagit

package module
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 4 Imported by: 0

README

hagit

Install

go get github.com/johnhaha/hagit@v0.0.13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStatusContains added in v0.0.10

func CheckStatusContains(msg ...string) bool

func Clone added in v0.0.12

func Clone(gitPath string, dest string)

func Commit added in v0.0.8

func Commit(content string)

func CreateNewRepo added in v0.0.8

func CreateNewRepo(name string)

func DeleteTag added in v0.0.3

func DeleteTag(tag string)

func NewBranch added in v0.0.8

func NewBranch(name string)

func Pull added in v0.0.12

func Pull(dest string) string

func Push

func Push(commit string, slow bool)

func PushTag

func PushTag(tag string)

func SetRemoteUrl

func SetRemoteUrl(url string)

func SetRepoSecretFromFile added in v0.0.9

func SetRepoSecretFromFile(path string)

Types

type Giter added in v0.0.4

type Giter struct {
	Path       string
	OriginPath string
	Slow       bool
}

func NewGiter added in v0.0.4

func NewGiter() *Giter

func (*Giter) Back added in v0.0.6

func (g *Giter) Back() *Giter

back to origin dir

func (*Giter) Delete added in v0.0.4

func (g *Giter) Delete(tag string) *Giter

func (*Giter) Push added in v0.0.4

func (g *Giter) Push(cmt string) *Giter

push file

func (*Giter) PushTag added in v0.0.4

func (g *Giter) PushTag(tag string) *Giter

func (*Giter) SetPath added in v0.0.4

func (g *Giter) SetPath(p string) *Giter

func (*Giter) SetRemoteUrl added in v0.0.4

func (g *Giter) SetRemoteUrl(url string) *Giter

func (*Giter) SetSlow added in v0.0.8

func (g *Giter) SetSlow() *Giter

Jump to

Keyboard shortcuts

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