diff options
author | Antonio Jesus Navarro Perez <antonio@sourced.tech> | 2017-02-28 11:56:10 +0100 |
---|---|---|
committer | Antonio Jesus Navarro Perez <antonio@sourced.tech> | 2017-02-28 11:56:10 +0100 |
commit | 305f28004ecbc03ea353437cf4c76423d93fbbd8 (patch) | |
tree | eb6078b1213dec261881739170c5cd1dd13be7b8 /_examples/remotes | |
parent | 0e9dea19f856e256e609c3390e000760d2b2b95a (diff) | |
download | go-git-305f28004ecbc03ea353437cf4c76423d93fbbd8.tar.gz |
_examples: improve documentation
Diffstat (limited to '_examples/remotes')
-rw-r--r-- | _examples/remotes/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_examples/remotes/main.go b/_examples/remotes/main.go index 9537fea..8c59a67 100644 --- a/_examples/remotes/main.go +++ b/_examples/remotes/main.go @@ -10,6 +10,13 @@ import ( "srcd.works/go-git.v4/storage/memory" ) +// Example of how to: +// - Create a new repository into memory +// - Create a new remote called "example" +// - List remotes and print them +// - Pull using the new remote "example" +// - Iterate again the references, but only showing hash references, not simbolic ones +// - Remove remote "example" func main() { // Create a new repository Info("git init") |