Sign in
◑
Theme
chromium
/
external
/
github.com
/
src-d
/
go-git
/
52fcf7d8a3c2da58769e105a26240e3e697fedeb
/
.
/
_examples
tree: 7b14fda30dac759480cdb275fb16076b16cb0be9 [
search
]
branch/
checkout/
clone/
commit/
context/
custom_http/
log/
ls/
open/
progress/
pull/
push/
remotes/
revision/
showcase/
storage/
tag/
common.go
common_test.go
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
username and password
- Cloning a repository using a username and password
personal access token
- Cloning a repository using a GitHub personal access token
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
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