{"modulePath":"github.com/stainless-api/stainless-api-cli","version":"v0.1.0-alpha.89","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\n## Functions\n\n```go\nfunc Checkout(dir string, args ...string) error\n```\nCheckout runs git checkout with the given arguments\n\n```go\nfunc CurrentBranch(dir string) (string, error)\n```\nCurrentBranch returns the current branch name\n\n```go\nfunc Fetch(dir, url string, refspecs ...string) error\n```\nFetch fetches from a remote\n\n```go\nfunc Init(dir string) error\n```\nInit initializes a git repository in the given directory\n\n```go\nfunc RemoteAdd(dir, name, url string) error\n```\nRemoteAdd adds a remote to the repository\n\n```go\nfunc RemoteGetURL(dir, name string) (string, error)\n```\nRemoteGetURL gets the URL of a remote\n\n```go\nfunc RevParse(dir, ref string) (string, error)\n```\nRevParse runs git rev-parse and returns the SHA, or error if it fails\n\n```go\nfunc Show(dir, ref, path string) ([]byte, error)\n```\nShow returns the contents of a file at a given ref\n\n","path":"github.com/stainless-api/stainless-api-cli/pkg/git","name":"git","synopsis":"","isRedistributable":true}
