Documentation
¶
Index ¶
- func Checkout(dir string, args ...string) error
- func CurrentBranch(dir string) (string, error)
- func Fetch(dir, url string, refspecs ...string) error
- func Init(dir string) error
- func RemoteAdd(dir, name, url string) error
- func RemoteGetURL(dir, name string) (string, error)
- func RevParse(dir, ref string) (string, error)
- func Show(dir, ref, path string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentBranch ¶
CurrentBranch returns the current branch name
func RemoteGetURL ¶
RemoteGetURL gets the URL of a remote
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.