git

package
v0.1.0-alpha.65 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkout

func Checkout(dir string, args ...string) error

Checkout runs git checkout with the given arguments

func Fetch

func Fetch(dir, url string, refspecs ...string) error

Fetch fetches from a remote

func Init

func Init(dir string) error

Init initializes a git repository in the given directory

func RemoteAdd

func RemoteAdd(dir, name, url string) error

RemoteAdd adds a remote to the repository

func RemoteGetURL

func RemoteGetURL(dir, name string) (string, error)

RemoteGetURL gets the URL of a remote

func RevParse

func RevParse(dir, ref string) (string, error)

RevParse runs git rev-parse and returns the SHA, or error if it fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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