• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..02-Jun-2021-

branch/H02-Jun-2021-4625

checkout/H02-Jun-2021-4832

clone/H02-Jun-2021-168115

commit/H02-Jun-2021-6943

context/H02-Jun-2021-4729

custom_http/H02-Jun-2021-5434

log/H02-Jun-2021-4828

ls/H02-Jun-2021-273204

ls-remote/H02-Jun-2021-4329

merge_base/H02-Jun-2021-251189

open/H02-Jun-2021-4326

progress/H02-Jun-2021-3118

pull/H02-Jun-2021-3723

push/H02-Jun-2021-2415

remotes/H02-Jun-2021-7945

revision/H02-Jun-2021-3319

showcase/H02-Jun-2021-7440

storage/H02-Jun-2021-10875

submodule/H02-Jun-2021-5641

tag/H02-Jun-2021-4431

tag-create-push/H02-Jun-2021-149126

README.mdH A D02-Jun-20211.9 KiB3228

common.goH A D02-Jun-2021894 3725

common_test.goH A D02-Jun-20213.6 KiB158128

README.md

1# go-git: examples
2
3Here you can find a list of annotated _go-git_ examples:
4
5### Basic
6- [showcase](showcase/main.go) - A small showcase of the capabilities of _go-git_.
7- [open](open/main.go) - Opening a existing repository cloned by _git_.
8- [clone](clone/main.go) - Cloning a repository.
9    - [username and password](clone/auth/basic/username_password/main.go) - Cloning a repository
10      using a username and password.
11    - [personal access token](clone/auth/basic/access_token/main.go) - Cloning
12      a repository using a GitHub personal access token.
13    - [ssh private key](clone/auth/ssh/main.go) - Cloning a repository using a ssh private key.
14- [commit](commit/main.go) - Commit changes to the current branch to an existent repository.
15- [push](push/main.go) - Push repository to default remote (origin).
16- [pull](pull/main.go) - Pull changes from a remote repository.
17- [checkout](checkout/main.go) - Check out a specific commit from a repository.
18- [log](log/main.go) - Emulate `git log` command output iterating all the commit history from HEAD reference.
19- [branch](branch/main.go) - How to create and remove branches or any other kind of reference.
20- [tag](tag/main.go) - List/print repository tags.
21- [tag create and push](tag-create-push/main.go) - Create and push a new tag.
22- [remotes](remotes/main.go) - Working with remotes: adding, removing, etc.
23- [progress](progress/main.go) - Printing the progress information from the sideband.
24- [revision](revision/main.go) - Solve a revision into a commit.
25- [config](config/main.go) - Explains how to work with config files.
26- [submodule](submodule/main.go) - Submodule update remote.
27
28### Advanced
29- [custom_http](custom_http/main.go) - Replacing the HTTP client using a custom one.
30- [clone with context](context/main.go) - Cloning a repository with graceful cancellation.
31- [storage](storage/README.md) - Implementing a custom storage system.
32