git

package
v5.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(dir string) (string, error)

Branch will return the git branch of the repo at dir

func Init

func Init(workingDir string) error

Init will run git init in the directory

func Pull

func Pull(workingDir string) error

Pull runs git pull --rebase origin master in the given workingDir

func RunGitCMD

func RunGitCMD(workingDir string, args ...string) error

RunGitCMD runs git with the given args in workingDir

func Sync

func Sync(workingDir string) error

Sync will add and commit all files in the repo then push.

Types

This section is empty.

Jump to

Keyboard shortcuts

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