Documentation
¶
Index ¶
- type Git
- func (g *Git) CheckoutBranch(branchName string) (string, error)
- func (g *Git) Commit(message string) (string, error)
- func (g *Git) CreateAndCheckoutBranch(branchName string) (string, error)
- func (g *Git) Diff() (string, error)
- func (g *Git) GetGlobalUserEmail() (string, error)
- func (g *Git) GetGlobalUserName() (string, error)
- func (g *Git) GetRemoteURL() (string, error)
- func (g *Git) PullRebase() (string, error)
- func (g *Git) Push(branchName string) (string, error)
- func (g *Git) RebaseAndPushToMaster() (string, error)
- type Hub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
Git wraps the git command line.
func (*Git) CheckoutBranch ¶ added in v1.2.0
Checkout branch.
func (*Git) CreateAndCheckoutBranch ¶ added in v1.2.0
CreateAndCheckoutBranch does what it says.
func (*Git) GetGlobalUserEmail ¶ added in v1.2.0
GetGlobalUserEmail returns user email from gits global config.
func (*Git) GetGlobalUserName ¶ added in v1.2.0
GetGlobalUserName returns user name from gits global config.
func (*Git) GetRemoteURL ¶
GetRemoteURL returns the remotes URL or an error.
func (*Git) RebaseAndPushToMaster ¶
PushToMaster rebases and pushes the commit(s) to upstream.
Click to show internal directories.
Click to hide internal directories.