git

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package git provides git operations commands for batch-tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch added in v0.9.6

func Branch(ctx context.Context, ch output.Channel) error

Branch checks out a new branch in the given repository.

func Cmd

func Cmd() *cobra.Command

Cmd configures the root git command along with all subcommands and flags

func Commit added in v0.9.6

func Commit(ctx context.Context, ch output.Channel) error

Commit stages all changes, creates a commit, and pushes it to the remote repository.

func Push added in v0.9.6

func Push(ctx context.Context, ch output.Channel) error

Push committed changes to the remote repository.

func Status added in v0.9.6

func Status(ctx context.Context, ch output.Channel) error

Status shows the git status for the given repository.

func Update added in v0.9.6

func Update(ctx context.Context, ch output.Channel) error

Update checks out the default branch and pulls the latest changes.

func ValidateBranch added in v0.10.0

func ValidateBranch(ctx context.Context, ch output.Channel) error

ValidateBranch returns an error if the current git branch is the default branch

Types

This section is empty.

Jump to

Keyboard shortcuts

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