git

package
v0.0.0-...-7be6626 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewGitClient

type NewGitClient struct {
	Url           string
	Path          string
	Username      string
	Password      string
	Repo          *git.Repository
	Buffer        *bytes.Buffer
	RepoType      int64  // 0 表示是公有仓库; 1 表示是私有仓库
	DefaultBranch string // 默认分支
	RemoteName    string // 远程名称, 默认是 origin
}

func (*NewGitClient) Head

func (u *NewGitClient) Head() (string, error)

func (*NewGitClient) Update

func (u *NewGitClient) Update() error

Jump to

Keyboard shortcuts

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