git

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch added in v0.7.0

func Branch() string

Branch to return current branch

func Fetch

func Fetch() error

Fetch is same with `get fetch`

func Git

func Git(args ...string) (s string, err error)

Git to execution git command

func LatestCommit added in v0.7.0

func LatestCommit() string

LatestCommit return latest commit in short hash

func LatestTag

func LatestTag() string

LatestTag to get latest tag and its hash key

func Logs

func Logs(from string) []string

Logs of commits

func Push

func Push(commitMessage string, files ...string) (err error)

Push files to git repo

func Status

func Status(files ...string) string

Status is same with `git status --porcelain`

Types

This section is empty.

Jump to

Keyboard shortcuts

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