Documentation ¶
Index ¶
- func Add() *exec.Cmd
- func EmptyCommit(msg string, noVerify bool, authorName, authorEmail string) *exec.Cmd
- func ForceAdd() *exec.Cmd
- func ForceCommit(msg string, noVerify bool, authorName, authorEmail string) *exec.Cmd
- func GlobalName(author string) *exec.Cmd
- func GlobalUser(email string) *exec.Cmd
- func RemoteAdd(name, url string) *exec.Cmd
- func RemotePullRebaseNamedBranch(remote, branch string) *exec.Cmd
- func RemotePush(remote, branch string, force bool, followtags bool) *exec.Cmd
- func RemotePushNamedBranch(remote, localbranch string, branch string, force bool, followtags bool) *exec.Cmd
- func RemoteRemove(name string) *exec.Cmd
- func SkipVerify() *exec.Cmd
- func Tag(tag string) *exec.Cmd
- func TestCleanTree() *exec.Cmd
- func WriteKey(privateKey string) error
- func WriteNetrc(machine, login, password string) error
- func WriteToken(remote string, login, password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyCommit ¶
EmptyCommit simply create an empty commit
func ForceCommit ¶
ForceCommit commits every change while skipping CI.
func GlobalName ¶
GlobalName sets the global git author name.
func GlobalUser ¶
GlobalUser sets the global git author email.
func RemotePullRebaseNamedBranch ¶ added in v1.0.4
func RemotePush ¶
RemotePush pushs the changes from the local head to a remote branch..
func RemotePushNamedBranch ¶
func RemotePushNamedBranch(remote, localbranch string, branch string, force bool, followtags bool) *exec.Cmd
RemotePushNamedBranch puchs changes from a local to a remote branch.
func RemoteRemove ¶
RemoteRemove drops the defined remote from a git repo.
func SkipVerify ¶
SkipVerify disables globally the git ssl verification.
func TestCleanTree ¶
TestCleanTree returns non-zero if diff between index and local repository
func WriteNetrc ¶
WriteNetrc writes the netrc file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.