git

package
v1.131.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(repo, path string) error

func Cloneb

func Cloneb(repo, path string, branch string) error

func FetchAndCheckout added in v1.67.0

func FetchAndCheckout(path string, dryRun bool) (bool, error)

FetchAndCheckout fetches from origin and selectively checks out files from origin/main, skipping user-modifiable files listed in skipPaths. This avoids merge conflicts when local commits diverge from upstream and preserves any files the user has customized or deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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