gitopt

package
v0.0.0-...-4b7e845 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitAdd

func GitAdd(w *git.Worktree, glob string) error

git add operation

func GitCommit

func GitCommit(wt *git.Worktree, msg string, opt *git.CommitOptions) (plumbing.Hash, error)

git commit operation

func GitCreateBranch

func GitCreateBranch(r git.Repository) error

create 'master' branch

func GitCreateRemote

func GitCreateRemote(r git.Repository, cloneUrl string) (*git.Remote, error)

git 'remote add' operation

func GitInit

func GitInit(path string) (*git.Repository, error)

git init operation

func GitPush

func GitPush(r *git.Remote, ctx context.Context, userName string, password string) error

git 'push' operation

func GithubCreateRepository

func GithubCreateRepository(client *github.Client, ctx context.Context, projName string) (*github.Repository, *github.Response, error)

func InitClient

func InitClient(accessToken string) (*github.Client, context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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