git

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch added in v0.9.6

func Branch(ctx context.Context, name string, ch chan<- string) 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, name string, ch chan<- string) 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, name string, ch chan<- string) error

Push committed changes to the remote repository.

func Status added in v0.9.6

func Status(ctx context.Context, repo string, ch chan<- string) error

Status shows the git status for the given repository.

func Update added in v0.9.6

func Update(ctx context.Context, repo string, ch chan<- string) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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