git

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Directory string // The (temporary) directory that should be worked within
	Repo      string // The "url" to the repo, any format can be used as long as it's pushable
	NewBranch string // The name of the new branch that new changes will be pushed to
	Token     string
}

Git is an implementation of git that executes git as a command This has drawbacks, but the big benefit is that the configuration probably already present can be reused

func (Git) Clone

func (g Git) Clone() error

Clone clones a repository

func (Git) Commit

func (g Git) Commit(commitMessage string) error

Commit commits and pushes changes

Jump to

Keyboard shortcuts

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