8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb3a1bf + 9437ff5 commit 53f8784Copy full SHA for 53f8784
_examples/config/main.go
@@ -58,6 +58,10 @@ func main() {
58
// Get custom config param (merged in the same way git does: system -> global -> local)
59
Info("custom.name is %s", cfg.Merged.Section("custom").Option("name"))
60
61
+ //In order to save the config file, you need to call SetConfig
62
+ //After calling this go to .git/config and see the custom.name added and the changes to the remote
63
+ r.Storer.SetConfig(cfg)
64
+
65
// Get system config params (/etc/gitconfig)
66
systemSections := cfg.Merged.SystemConfig().Sections
67
for _, ss := range systemSections {
0 commit comments