git

package
v0.0.0-...-6e12ed0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DirPerm = 0755

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func Open

func Open(dir, url string) (*Repo, error)

Pull Git repository at dir. If dir is empty, clone repository. If url is empty, create GitHub repository using Base(dir) as name.

func (*Repo) Clean

func (r *Repo) Clean() error

Clean all changes Git repository.

func (*Repo) Dir

func (r *Repo) Dir() string

func (*Repo) Pull

func (r *Repo) Pull() error

Pull all changes Git repository.

func (*Repo) Push

func (r *Repo) Push() error

Push all changes Git repository.

func (*Repo) URL

func (r *Repo) URL() string

Jump to

Keyboard shortcuts

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