Documentation
¶
Overview ¶
Package git is an interface package that provides Git functionality likely through a library package
Index ¶
Constants ¶
View Source
const (
DefaultInitRemote = "origin"
)
View Source
const (
DefaultRemoteOfInterest = "origin"
)
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
Clone does a `git clone` on the provided :cloneURL into the directory at :localPath. If the remote is a bare repository, a new repository will be initialised at :localPath with the `origin` remote set to :cloneURL
Types ¶
type Remote ¶
func GetRemote ¶
GetRemote retrieves the remote from the Git repository located at the path :fromGitRepositoryAt which should be a directory containing a .git directory. If :remoteNameMatcher is specified, the URL returned will be the URL of the remote whose name matches with the specified matcher. If :remoteNameMatcher is not specified, the URL of origin is returned
Click to show internal directories.
Click to hide internal directories.