gitops

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gitops provides Git operations via subprocess.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitAndPush

func CommitAndPush(files []string, message, branch string) (string, error)

CommitAndPush stages files, commits, pushes, and returns the commit SHA.

func Configure

func Configure(userName, userEmail, token, repository, serverURL string) error

Configure sets up git with user info and authentication.

func CreateBranch

func CreateBranch(name, base string) error

CreateBranch creates and checks out a new branch from a base.

func GetDefaultBranch

func GetDefaultBranch() string

GetDefaultBranch returns the default branch name.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL