package
0.17.2
Repository: https://github.com/gruntwork-io/go-commons.git
Documentation: pkg.go.dev

# Functions

Checkout checks out the given ref for the repo cloned in the target directory.
Clone runs git clone to clone the specified repository into the given target directory.
ConfigureCacheCredentialsHelper configures git globally to use the cache credentials helper for authentication based on the provided options configuration.
ConfigureForceHTTPS configures git to force usage of https endpoints instead of SSH based endpoints for the three primary VCS platforms (GitHub, GitLab, BitBucket).
ConfigureHTTPSAuth configures git with username and password to authenticate with the given VCS host when interacting with git over HTTPS.
StoreCacheCredentials stores the given git credentials for the vcs host and path pair to the git credential-cache helper.

# Structs

CredentialOptions are the possible configurations options for configuring the git credential-cache helper.
TargetDirectoryNotExistsErr is returned when the target directory of the git commands does not exist or is not a directory.