examples
package v4.7.0+incompatible
Go to latest Published: Sep 6, 2018 License:Apache-2.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:3 Opens a new window with list of imports.
Imported by:4 Opens a new window with list of known importers.
Details
Valid go.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
go-git: examples
Here you can find a list of annotatedgo-git examples:
Basic
- showcase - A small showcase of the capabilities ofgo-git
- open - Opening a existing repository cloned bygit
- clone - Cloning a repository
- commit - Commit changes to the current branch to an existent repository
- push - Push repository to default remote (origin)
- pull - Pull changes from a remote repository
- checkout - Check out a specific commit from a repository
- log - Emulate
git logcommand output iterating all the commit history from HEAD reference - branch - How to create and remove branches or any other kind of reference.
- tag - List/print repository tags
- remotes - Working with remotes: adding, removing, etc
- progress - Printing the progress information from the sideband
- revision - Solve a revision into a commit
Advanced
- custom_http - Replacing the HTTP client using a custom one
- clone with context - Cloning a repository with graceful cancellation.
- storage - Implementing a custom storage system
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCheckArgs¶
func CheckArgs(arg ...string)
CheckArgs should be used to ensure the right command line arguments arepassed before executing an example.
funcCheckIfError¶
func CheckIfError(errerror)
CheckIfError should be used to naively panics if an error is not nil.
Types¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.