fork of go-git with some jj specific features
fork
Configure Feed
Select the types of activity you want to include in your feed.
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/private_key/main.go) - Cloning a repository using a ssh private key.
14 - [ssh agent](clone/auth/ssh/ssh_agent/main.go) - Cloning a repository using ssh-agent.
15- [commit](commit/main.go) - Commit changes to the current branch to an existent repository.
16- [push](push/main.go) - Push repository to default remote (origin).
17- [pull](pull/main.go) - Pull changes from a remote repository.
18- [checkout](checkout/main.go) - Check out a specific commit from a repository.
19- [log](log/main.go) - Emulate `git log` command output iterating all the commit history from HEAD reference.
20- [branch](branch/main.go) - How to create and remove branches or any other kind of reference.
21- [tag](tag/main.go) - List/print repository tags.
22- [tag create and push](tag-create-push/main.go) - Create and push a new tag.
23- [tag find if head is tagged](find-if-any-tag-point-head/main.go) - Find if `HEAD` is tagged.
24- [remotes](remotes/main.go) - Working with remotes: adding, removing, etc.
25- [progress](progress/main.go) - Printing the progress information from the sideband.
26- [revision](revision/main.go) - Solve a revision into a commit.
27- [submodule](submodule/main.go) - Submodule update remote.
28- [azure devops](azure_devops/main.go) - Cloning Azure DevOps repositories.
29- [blame](blame/main.go) - Blame/annotate a commit.
30- [ls-remote](ls-remote/main.go) - List remote tags without cloning a repository.
31
32### Advanced
33- [custom_http](custom_http/main.go) - Replacing the HTTP client using a custom one.
34- [clone with context](context/main.go) - Cloning a repository with graceful cancellation.
35- [storage](storage/README.md) - Implementing a custom storage system.
36- [sha256](sha256/main.go) - Init and committing repositories that use sha256 as object format.