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