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
Click to show internal directories.
Click to hide internal directories.