Files
Zhizhen He 32975ee2c7 *: fix some typos
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-09-08 09:30:43 +08:00
..
2021-07-30 14:48:43 +02:00
2020-03-10 00:40:56 +01:00
2020-03-10 00:40:56 +01:00
2021-12-10 06:39:50 +01:00
2023-09-08 09:30:43 +08:00
2020-03-10 00:40:56 +01:00

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.
  • tag create and push - Create and push a new tag.
  • tag find if head is tagged - Find if HEAD is tagged.
  • remotes - Working with remotes: adding, removing, etc.
  • progress - Printing the progress information from the sideband.
  • revision - Solve a revision into a commit.
  • submodule - Submodule update remote.
  • azure devops - Cloning Azure DevOps repositories.
  • blame - Blame/annotate a commit.
  • ls-remote - List remote tags without cloning a repository.

Advanced

  • custom_http - Replacing the HTTP client using a custom one.
  • clone with context - Cloning a repository with graceful cancellation.
  • storage - Implementing a custom storage system.
  • sha256 - Init and commiting repositories that use sha256 as object format.