Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 02-Jun-2021 | - | ||||
branch/ | H | 02-Jun-2021 | - | 46 | 25 | |
checkout/ | H | 02-Jun-2021 | - | 48 | 32 | |
clone/ | H | 02-Jun-2021 | - | 168 | 115 | |
commit/ | H | 02-Jun-2021 | - | 69 | 43 | |
context/ | H | 02-Jun-2021 | - | 47 | 29 | |
custom_http/ | H | 02-Jun-2021 | - | 54 | 34 | |
log/ | H | 02-Jun-2021 | - | 48 | 28 | |
ls/ | H | 02-Jun-2021 | - | 273 | 204 | |
ls-remote/ | H | 02-Jun-2021 | - | 43 | 29 | |
merge_base/ | H | 02-Jun-2021 | - | 251 | 189 | |
open/ | H | 02-Jun-2021 | - | 43 | 26 | |
progress/ | H | 02-Jun-2021 | - | 31 | 18 | |
pull/ | H | 02-Jun-2021 | - | 37 | 23 | |
push/ | H | 02-Jun-2021 | - | 24 | 15 | |
remotes/ | H | 02-Jun-2021 | - | 79 | 45 | |
revision/ | H | 02-Jun-2021 | - | 33 | 19 | |
showcase/ | H | 02-Jun-2021 | - | 74 | 40 | |
storage/ | H | 02-Jun-2021 | - | 108 | 75 | |
submodule/ | H | 02-Jun-2021 | - | 56 | 41 | |
tag/ | H | 02-Jun-2021 | - | 44 | 31 | |
tag-create-push/ | H | 02-Jun-2021 | - | 149 | 126 | |
README.md | H A D | 02-Jun-2021 | 1.9 KiB | 32 | 28 | |
common.go | H A D | 02-Jun-2021 | 894 | 37 | 25 | |
common_test.go | H A D | 02-Jun-2021 | 3.6 KiB | 158 | 128 |
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