repo

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add() *exec.Cmd

Add updates the index to match the working tree.

func EmptyCommit

func EmptyCommit(msg string, noVerify bool, authorName, authorEmail string) *exec.Cmd

EmptyCommit simply create an empty commit

func ForceAdd

func ForceAdd() *exec.Cmd

ForceAdd forces the addition of all dirty files.

func ForceCommit

func ForceCommit(msg string, noVerify bool, authorName, authorEmail string) *exec.Cmd

ForceCommit commits every change while skipping CI.

func GlobalName

func GlobalName(author string) *exec.Cmd

GlobalName sets the global git author name.

func GlobalUser

func GlobalUser(email string) *exec.Cmd

GlobalUser sets the global git author email.

func RemoteAdd

func RemoteAdd(name, url string) *exec.Cmd

RemoteAdd adds an additional remote to a git repo.

func RemotePullRebaseNamedBranch added in v1.0.4

func RemotePullRebaseNamedBranch(remote, branch string) *exec.Cmd

func RemotePush

func RemotePush(remote, branch string, force bool, followtags bool) *exec.Cmd

RemotePush pushs the changes from the local head to a remote branch..

func RemotePushNamedBranch

func RemotePushNamedBranch(remote, localbranch string, branch string, force bool, followtags bool) *exec.Cmd

RemotePushNamedBranch puchs changes from a local to a remote branch.

func RemoteRemove

func RemoteRemove(name string) *exec.Cmd

RemoteRemove drops the defined remote from a git repo.

func SkipVerify

func SkipVerify() *exec.Cmd

SkipVerify disables globally the git ssl verification.

func Tag added in v0.2.2

func Tag(tag string) *exec.Cmd

Tag add tag to the working tree.

func TestCleanTree

func TestCleanTree() *exec.Cmd

TestCleanTree returns non-zero if diff between index and local repository

func WriteKey

func WriteKey(privateKey string) error

WriteKey writes the private key.

func WriteNetrc

func WriteNetrc(machine, login, password string) error

WriteNetrc writes the netrc file.

func WriteToken

func WriteToken(remote string, login, password string) (string, error)

WriteToken authenticate with Git hosting using a token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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