tree: 26b3b351217fcab41e88b50158e4785708b45a13 [path history] [tgz]
  1. README.md
  2. checkout/
  3. clone/
  4. commit/
  5. common.go
  6. common_test.go
  7. context/
  8. custom_http/
  9. log/
  10. open/
  11. progress/
  12. pull/
  13. push/
  14. remotes/
  15. showcase/
  16. storage/
  17. tag/
_examples/README.md

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
  • clone with context - Cloning a repository with graceful cancellation.
  • 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
  • pull - pull changes from a remote repository

Advanced

  • custom_http - Replacing the HTTP client using a custom one
  • storage - Implementing a custom storage system