examples

package
v4.0.0-rc13 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 3 Imported by: 2,820

README

go-git: examples

Here you can find a list of annotated go-git examples:

Basic
  • showcase - A small showcase of the capabilities of go-git
  • open - Opening a existing repository cloned by git
  • clone - Cloning a repository
  • log - Emulate git log command output iterating all the commit history from HEAD reference
  • remotes - Working with remotes: adding, removing, etc
  • progress - Printing the progress information from the sideband
  • push - Push repository to default remote (origin)
  • checkout - check out a specific commit from a repository
  • tag - list/print repository tags
Advanced
  • custom_http - Replacing the HTTP client using a custom one
  • storage - Implementing a custom storage system

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArgs

func CheckArgs(arg ...string)

CheckArgs should be used to esnure the right command line arguments are passed before executing an example.

func CheckIfError

func CheckIfError(err error)

CheckIfError should be used to naively panics if an error is not nil.

func Info

func Info(format string, args ...interface{})

Info should be used to describe the example commands that are about to run.

func Warning

func Warning(format string, args ...interface{})

Warning should be used to display a warning

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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