git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(gitDir string, sshKeyFile string, repoUrl string, branch string, remote string) error

CLone the git repository to the specified git directory with the provided remote repo name. This function assumes that the arguments provided have been checked or validated earlier, for example gitDir is an empty directory or does not exist.

func Pull

func Pull(gitDir string, sshKeyFile string, branch string, remote string) error

Pull the git directory specified by gitDir using the provided sshKeyFile secret and branch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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