Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAll

func AddAll(dir string) error

func Clone

func Clone(url, dir string) error

func Commit

func Commit(dir, message string) error

func CurrentBranch added in v0.3.0

func CurrentBranch(dir string) (string, error)

func Init

func Init(dir string) error

func IsDirty

func IsDirty(dir string) (bool, error)

func Pull

func Pull(dir string) error

func Push

func Push(dir string) error

func RemoteURL

func RemoteURL(dir string) (string, error)

func RequireGit

func RequireGit() error

func SetRemote

func SetRemote(dir, url string) error

func StatusPorcelain

func StatusPorcelain(dir string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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