Documentation
¶
Overview ¶
Package gitops provides Git operations via subprocess.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitAndPush ¶
CommitAndPush stages files, commits, and force-pushes to origin. The branch always represents HEAD + the YAML changes, so force push is the default.
func CreateBranch ¶
CreateBranch creates and checks out a new branch from a base. It always starts fresh from origin/<base>, discarding any existing local branch.
func GetDefaultBranch ¶
func GetDefaultBranch() string
GetDefaultBranch returns the default branch name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.