git

package
v0.0.0-...-870cc59 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(url, branch, destination string) error

Clone clones the repo from the url into the destination

func CloneWithToken

func CloneWithToken(url, branch, destination, token string) error

CloneWithToken clones the repo from the url using access token which is an alternative for auth to clone private repositories

func Pull

func Pull(dotgitPath, branch string) error

Pull pulls the latest branch from "origin" 'dotgitPath' is the absolute path to .git directory 'branch' is the branch name which is to be pulled

Types

This section is empty.

Jump to

Keyboard shortcuts

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