..
.TH "GIT-REPO-CONFIG" 1 "" "" ""
.SH NAME
-git-repo-config \- Get and set options in .git/config.
+git-repo-config \- Get and set options in .git/config
.SH "SYNOPSIS"
-
-\fIgit\-repo\-config\fR [type] name [value [value_regex]] \fIgit\-repo\-config\fR [type] \-\-replace\-all name [value [value_regex]] \fIgit\-repo\-config\fR [type] \-\-get name [value_regex] \fIgit\-repo\-config\fR [type] \-\-get\-all name [value_regex] \fIgit\-repo\-config\fR [type] \-\-unset name [value_regex] \fIgit\-repo\-config\fR [type] \-\-unset\-all name [value_regex]
+.nf
+\fIgit\-repo\-config\fR [type] name [value [value_regex]]
+\fIgit\-repo\-config\fR [type] \-\-replace\-all name [value [value_regex]]
+\fIgit\-repo\-config\fR [type] \-\-get name [value_regex]
+\fIgit\-repo\-config\fR [type] \-\-get\-all name [value_regex]
+\fIgit\-repo\-config\fR [type] \-\-unset name [value_regex]
+\fIgit\-repo\-config\fR [type] \-\-unset\-all name [value_regex]
+.fi
.SH "DESCRIPTION"
you can set the filemode to true with
-.IP
+.nf
% git repo\-config core\&.filemode true
+.fi
+
The hypothetic proxy command entries actually have a postfix to discern to what URL they apply\&. Here is how to change the entry for kernel\&.org to "ssh"\&.
-.IP
+.nf
% git repo\-config proxy\&.command '"ssh" for kernel\&.org' 'for kernel\&.org$'
+.fi
+
This makes sure that only the key/value pair for kernel\&.org is replaced\&.
To delete the entry for renames, do
-.IP
+.nf
% git repo\-config \-\-unset diff\&.renames
+.fi
+
If you want to delete an entry for a multivar (like proxy\&.command above), you have to provide a regex matching the value of exactly one line\&.
To query the value for a given key, do
-.IP
+.nf
% git repo\-config \-\-get core\&.filemode
+.fi
+
or
-.IP
+.nf
% git repo\-config core\&.filemode
+.fi
+
or, to query a multivar:
-.IP
+.nf
% git repo\-config \-\-get proxy\&.command "for kernel\&.org$"
+.fi
+
If you want to know all the values for a multivar, do:
-.IP
+.nf
% git repo\-config \-\-get\-all proxy\&.command
+.fi
+
If you like to live dangerous, you can replace \fIall\fR proxy\&.commands by a new one with
-.IP
+.nf
% git repo\-config \-\-replace\-all proxy\&.command ssh
+.fi
+
However, if you really only want to replace the line for the default proxy, i\&.e\&. the one without a "for ..." postfix, do something like this:
-.IP
+.nf
% git repo\-config proxy\&.command ssh '! for '
+.fi
+
To actually match only values with an exclamation mark, you have to
-.IP
+.nf
% git repo\-config section\&.key value '[!]'
+.fi
+
.SH "AUTHOR"