aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/remotes/main.go
diff options
context:
space:
mode:
Diffstat (limited to '_examples/remotes/main.go')
-rw-r--r--_examples/remotes/main.go7
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")