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