Skip to content

Files

Latest commit

 

History

History
This branch is 5 commits ahead of go-git/go-git:master.

_examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 16, 2022
Jul 5, 2023
Mar 9, 2020
Feb 21, 2024
Mar 9, 2020
Jan 13, 2024
May 11, 2023
Mar 9, 2020
Mar 9, 2020
Sep 24, 2021
Mar 9, 2020
May 3, 2023
Mar 9, 2020
Mar 9, 2020
Mar 9, 2020
Mar 9, 2020
Mar 9, 2020
Mar 9, 2020
Dec 10, 2021
Apr 20, 2024
Mar 9, 2020
Sep 8, 2023
Mar 9, 2020
Oct 11, 2024
Mar 9, 2020
May 14, 2020
May 11, 2023
Mar 9, 2020
Mar 12, 2024
Dec 1, 2017
Oct 18, 2024

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 committing repositories that use sha256 as object format.