tree: b2615f140751e4d1df139ba1c4027d2fcb80b569 [path history] [tgz]
  1. branch/
  2. checkout/
  3. clone/
  4. commit/
  5. context/
  6. custom_http/
  7. log/
  8. open/
  9. progress/
  10. pull/
  11. push/
  12. remotes/
  13. revision/
  14. showcase/
  15. storage/
  16. tag/
  17. common.go
  18. common_test.go
  19. 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
  • 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 log command 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