gogit

package
v0.0.0-...-24ca9bf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gogit implements git cli commands in a more convenient way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(s ...string) error

func AddAll

func AddAll() error

func Commit

func Commit(message string) error

Commit creates a commit with message

func CommitAll

func CommitAll(message string) error

CommitAll creates a commit with message that contains all updated files.

func Err

func Err(err error) error

Err calls error handling and logging routines

func GitInit

func GitInit() error

GitInit initializes the Git environment in the current directory with:

git init
git add --all
git commit -m 'Initial Commit'

func IsAlphaNum

func IsAlphaNum(s string) bool

func IsHash

func IsHash(s string) bool

func PushTags

func PushTags() error

func Remote

func Remote() string

Remote returns the remote repository url.

origin	git@github.com:skeptycal/util.git (fetch)
origin	git@github.com:skeptycal/util.git (push)

func RemoteName

func RemoteName() string

RemoteName gets the name of the remote branch, usually origin.

func Tag

func Tag(s string) error

Tag create a git tag object signed with GPG

func VersionTag

func VersionTag() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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