{"modulePath":"github.com/PhilipKram/gitlab-cli","version":"v0.7.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\n## Functions\n\n```go\nfunc CheckoutBranch(branch string) error\n```\nCheckoutBranch checks out the given branch, creating it if necessary.\n\n```go\nfunc CurrentBranch() (string, error)\n```\nCurrentBranch returns the currently checked-out branch name.\n\n```go\nfunc DefaultBranch(remote string) (string, error)\n```\nDefaultBranch returns the default branch of the repository (usually main or master).\n\n```go\nfunc TopLevelDir() (string, error)\n```\nTopLevelDir returns the top-level directory of the current git repository.\n\n## Types\n\n```go\ntype Remote struct {\n\tName     string\n\tFetchURL string\n\tPushURL  string\n\tHost     string\n\tOwner    string\n\tRepo     string\n}\n```\nRemote represents a git remote.\n\n```go\nfunc FindRemote(remoteName, host string) (*Remote, error)\n```\nFindRemote finds a remote matching the given host.\n\n```go\nfunc Remotes() ([]Remote, error)\n```\nRemotes returns all configured git remotes for the current repository.\n\n","path":"github.com/PhilipKram/gitlab-cli/internal/git","name":"git","synopsis":"","isRedistributable":true}
