tree: 98089177a1f23bd3672e1f3d267b0e7aafcd8cba [path history] [tgz]
  1. checkout/
  2. clone/
  3. commit/
  4. custom_http/
  5. log/
  6. open/
  7. progress/
  8. push/
  9. remotes/
  10. showcase/
  11. storage/
  12. tag/
  13. common.go
  14. common_test.go
  15. README.md
_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
  • 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