Discover Packages
github.com/stainless-api/stainless-api-cli
pkg
git
package
Version:
v0.1.0-alpha.86
Opens a new window with list of versions in this module.
Published: Mar 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Checkout(dir string, args ...string) error
func CurrentBranch(dir string) (string, error)
func Fetch(dir, url string, refspecs ...string) error
func Init(dir string) error
func RemoteAdd(dir, name, url string) error
func RemoteGetURL(dir, name string) (string, error)
func RevParse(dir, ref string) (string, error)
func Show(dir, ref, path string) ([]byte, error)
Checkout runs git checkout with the given arguments
CurrentBranch returns the current branch name
Fetch fetches from a remote
Init initializes a git repository in the given directory
RemoteAdd adds a remote to the repository
RemoteGetURL gets the URL of a remote
RevParse runs git rev-parse and returns the SHA, or error if it fails
Show returns the contents of a file at a given ref
Source Files
¶
Click to show internal directories.
Click to hide internal directories.