git

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Name      string
	URL       string
	Folder    string
	LocalCopy string
}

Repository - a GIT Repository

func Bootstrap

func Bootstrap(argName string, argURL string, argFolder string) (*Repository, error)

Bootstrap Bootstraps a local Copy.

func (*Repository) AddFile added in v0.0.4

func (repo *Repository) AddFile(file string) (string, error)

AddFile Adds a File to the Git Repository.

func (*Repository) Cleanup added in v0.0.4

func (repo *Repository) Cleanup() (string, error)

Cleanup - removes a localCopy of a Repository.

func (*Repository) CommitBranch added in v0.0.4

func (repo *Repository) CommitBranch(comment string) (string, error)

CommitBranch Commits a Branch to the Git Repository

func (*Repository) CreateBranch added in v0.0.4

func (repo *Repository) CreateBranch(branch string) (string, error)

CreateBranch creates a new Branch within the local Copy.

func (*Repository) PullBranch added in v0.0.4

func (repo *Repository) PullBranch(branch string) (string, error)

PullBranch pulls the changes of that branch from the remote Repository.

func (*Repository) PushBranch added in v0.0.4

func (repo *Repository) PushBranch(branch string) (string, error)

PushBranch pushes the changes of that branch to the remote Repository.

Jump to

Keyboard shortcuts

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