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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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