Forward thinking helps when creating linear recursive methods. true or false?

Set the default matching behavior. Using a value of basic, extended, fixed, or perl will enable the --basic-regexp, --extended-regexp, --fixed-strings, or

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
0 option accordingly, while the value default will use the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
1 option to choose between basic and extended.

grep.extendedRegexp

If set to true, enable --extended-regexp option by default. This option is ignored when the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
3 option is set to a value other than default.

grep.threads

Number of grep worker threads to use. If unset (or set to 0), Git will use as many threads as the number of logical cores available.

grep.fullName

If set to true, enable

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
4 option by default.

grep.fallbackToNoIndex

If set to true, fall back to git grep --no-index if git grep is executed outside of a git repository. Defaults to false.

gpg.program

Use this custom program instead of "

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
5" found on
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
6 when making or verifying a PGP signature. The program must support the same command-line interface as GPG, namely, to verify a detached signature, "
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
7" is run, and the program is expected to signal a good signature by exiting with code 0, and to generate an ASCII-armored detached signature, the standard input of "
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
8" is fed with the contents to be signed, and the program is expected to send the result to its standard output.

gpg.format

Specifies which key format to use when signing with

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
9. Default is "openpgp". Other possible values are "x509", "ssh".

gpg..program

Use this to customize the program used for the signing format you chose. (see

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
0 and
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
1)
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
0 can still be used as a legacy synonym for
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
3. The default value for
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
4 is "gpgsm" and
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
5 is "ssh-keygen".

gpg.minTrustLevel

Specifies a minimum trust level for signature verification. If this option is unset, then signature verification for merge operations require a key with at least

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
6 trust. Other operations that perform signature verification require a key with at least
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
7 trust. Setting this option overrides the required trust-level for all operations. Supported values, in increasing order of significance:

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    7

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    9

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    6

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    1

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    2

gpg.ssh.defaultKeyCommand

This command that will be run when user.signingkey is not set and a ssh signature is requested. On successful exit a valid ssh public key prefixed with

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
3 is expected in the first line of its output. This allows for a script doing a dynamic lookup of the correct public key when it is impractical to statically configure
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
4. For example when keys or SSH Certificates are rotated frequently or selection of the right key depends on external factors unknown to git.

gpg.ssh.allowedSignersFile

A file containing ssh public keys which you are willing to trust. The file consists of one or more lines of principals followed by an ssh public key. e.g.:

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
5 See ssh-keygen(1) "ALLOWED SIGNERS" for details. The principal is only used to identify the key and is available when verifying a signature.

SSH has no concept of trust levels like gpg does. To be able to differentiate between valid signatures and trusted signatures the trust level of a signature verification is set to

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
1 when the public key is present in the allowedSignersFile. Otherwise the trust level is
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
7 and git verify-commit/tag will fail.

This file can be set to a location outside of the repository and every developer maintains their own trust store. A central repository server could generate this file automatically from ssh keys with push access to verify the code against. In a corporate setting this file is probably generated at a global location from automation that already handles developer ssh keys.

A repository that only allows signed commits can store the file in the repository itself using a path relative to the top-level of the working tree. This way only committers with an already valid key can add or change keys in the keyring.

Since OpensSSH 8.8 this file allows specifying a key lifetime using valid-after & valid-before options. Git will mark signatures as valid if the signing key was valid at the time of the signature’s creation. This allows users to change a signing key without invalidating all previously made signatures.

Using a SSH CA key with the cert-authority option (see ssh-keygen(1) "CERTIFICATES") is also valid.

Either a SSH KRL or a list of revoked public keys (without the principal prefix). See ssh-keygen(1) for details. If a public key is found in this file then it will always be treated as having trust level "never" and signatures will show as invalid.

gui.commitMsgWidth

Defines how wide the commit message window is in the git-gui[1]. "75" is the default.

gui.diffContext

Specifies how many context lines should be used in calls to diff made by the git-gui[1]. The default is "5".

gui.displayUntracked

Determines if git-gui[1] shows untracked files in the file list. The default is "true".

gui.encoding

Specifies the default character encoding to use for displaying of file contents in git-gui[1] and gitk[1]. It can be overridden by setting the encoding attribute for relevant files (see gitattributes[5]). If this option is not set, the tools default to the locale encoding.

gui.matchTrackingBranch

Determines if new branches created with git-gui[1] should default to tracking remote branches with matching names or not. Default: "false".

gui.newBranchTemplate

Is used as suggested name when creating new branches using the git-gui[1].

gui.pruneDuringFetch

"true" if git-gui[1] should prune remote-tracking branches when performing a fetch. The default value is "false".

Determines if git-gui[1] should trust the file modification timestamp or not. By default the timestamps are not trusted.

gui.spellingDictionary

Specifies the dictionary used for spell checking commit messages in the git-gui[1]. When set to "none" spell checking is turned off.

gui.fastCopyBlame

If true, git gui blame uses

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
8 instead of
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
9 for original location detection. It makes blame significantly faster on huge repositories at the expense of less thorough copy detection.

gui.copyBlameThreshold

Specifies the threshold to use in git gui blame original location detection, measured in alphanumeric characters. See the git-blame[1] manual for more information on copy detection.

gui.blamehistoryctx

Specifies the radius of history context in days to show in gitk[1] for the selected commit, when the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
0 menu item is invoked from git gui blame. If this variable is set to zero, the whole history is shown.

guitool..cmd

Specifies the shell command line to execute when the corresponding item of the git-gui[1]

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
1 menu is invoked. This option is mandatory for every tool. The command is executed from the root of the working directory, and in the environment it receives the name of the tool as
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
2, the name of the currently selected file as FILENAME, and the name of the current branch as CUR_BRANCH (if the head is detached, CUR_BRANCH is empty).

guitool..needsFile

Run the tool only if a diff is selected in the GUI. It guarantees that FILENAME is not empty.

guitool..noConsole

Run the command silently, without creating a window to display its output.

guitool..noRescan

Don’t rescan the working directory for changes after the tool finishes execution.

guitool..confirm

Show a confirmation dialog before actually running the tool.

guitool..argPrompt

Request a string argument from the user, and pass it to the tool through the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
3 environment variable. Since requesting an argument implies confirmation, the confirm option has no effect if this is enabled. If the option is set to true, yes, or 1, the dialog uses a built-in generic prompt; otherwise the exact value of the variable is used.

guitool..revPrompt

Request a single valid revision from the user, and set the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
4 environment variable. In other aspects this option is similar to argPrompt, and can be used together with it.

guitool..revUnmerged

Show only unmerged branches in the revPrompt subdialog. This is useful for tools similar to merge or rebase, but not for things like checkout or reset.

guitool..title

Specifies the title to use for the prompt dialog. The default is the tool name.

guitool..prompt

Specifies the general prompt string to display at the top of the dialog, before subsections for argPrompt and revPrompt. The default value includes the actual command.

help.browser

Specify the browser that will be used to display help in the web format. See git-help[1].

help.format

Override the default help format used by git-help[1]. Values man, info, web and html are supported. man is the default. web and html are the same.

help.autoCorrect

If git detects typos and can identify exactly one valid command similar to the error, git will try to suggest the correct command or even run the suggestion automatically. Possible config values are:

  • 0 (default): show the suggested command.

  • positive number: run the suggested command after specified deciseconds (0.1 sec).

  • "immediate": run the suggested command immediately.

  • "prompt": show the suggestion and prompt for confirmation to run the command.

  • "never": don’t run or show any suggested command.

help.htmlPath

Specify the path where the HTML documentation resides. File system paths and URLs are supported. HTML pages will be prefixed with this path when help is displayed in the web format. This defaults to the documentation path of your Git installation.

http.proxy

Override the HTTP proxy, normally configured using the http_proxy, https_proxy, and all_proxy environment variables (see

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
5). In addition to the syntax understood by curl, it is possible to specify a proxy string with a user name but no password, in which case git will attempt to acquire one in the same way it does for other credentials. See gitcredentials[7] for more information. The syntax thus is [protocol://][user[:password]@]proxyhost[:port]. This can be overridden on a per-remote basis; see remote..proxy

http.proxyAuthMethod

Set the method with which to authenticate against the HTTP proxy. This only takes effect if the configured proxy string contains a user name part (i.e. is of the form user@host or user@host:port). This can be overridden on a per-remote basis; see

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
6. Both can be overridden by the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
7 environment variable. Possible values are:

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    8 - Automatically pick a suitable authentication method. It is assumed that the proxy answers an unauthenticated request with a 407 status code and one or more Proxy-authenticate headers with supported authentication methods. This is the default.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    9 - HTTP Basic authentication

  • -n0 - HTTP Digest authentication; this prevents the password from being transmitted to the proxy in clear text

  • -n1 - GSS-Negotiate authentication (compare the --negotiate option of

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    5)

  • -n3 - NTLM authentication (compare the --ntlm option of

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    5)

http.proxySSLCert

The pathname of a file that stores a client certificate to use to authenticate with an HTTPS proxy. Can be overridden by the -n5 environment variable.

http.proxySSLKey

The pathname of a file that stores a private key to use to authenticate with an HTTPS proxy. Can be overridden by the -n6 environment variable.

http.proxySSLCertPasswordProtected

Enable Git’s password prompt for the proxy SSL certificate. Otherwise OpenSSL will prompt the user, possibly many times, if the certificate or private key is encrypted. Can be overridden by the -n7 environment variable.

http.proxySSLCAInfo

Pathname to the file containing the certificate bundle that should be used to verify the proxy with when using an HTTPS proxy. Can be overridden by the -n8 environment variable.

http.emptyAuth

Attempt authentication without seeking a username or password. This can be used to attempt GSS-Negotiate authentication without specifying a username in the URL, as libcurl normally requires a username for authentication.

http.delegation

Control GSSAPI credential delegation. The delegation is disabled by default in libcurl since version 7.21.7. Set parameter to tell the server what it is allowed to delegate when it comes to user credentials. Used with GSS/kerberos. Possible values are:

  • -n9 - Don’t allow any delegation.

  • --column0 - Delegates if and only if the OK-AS-DELEGATE flag is set in the Kerberos service ticket, which is a matter of realm policy.

  • --column1 - Unconditionally allow the server to delegate.

Pass an additional HTTP header when communicating with a server. If more than one such entry exists, all of them are added as extra headers. To allow overriding the settings inherited from the system config, an empty value will reset the extra headers to the empty list.

http.cookieFile

The pathname of a file containing previously stored cookie lines, which should be used in the Git http session, if they match the server. The file format of the file to read cookies from should be plain HTTP headers or the Netscape/Mozilla cookie file format (see

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
5). NOTE that the file specified with http.cookieFile is used only as input unless http.saveCookies is set.

http.saveCookies

If set, store cookies received during requests to the file specified by http.cookieFile. Has no effect if http.cookieFile is unset.

http.version

Use the specified HTTP protocol version when communicating with a server. If you want to force the default. The available and default version depend on libcurl. Currently the possible values of this option are:

http.curloptResolve

Hostname resolution information that will be used first by libcurl when sending HTTP requests. This information should be in one of the following formats:

  • [+]HOST:PORT:ADDRESS[,ADDRESS]

  • -HOST:PORT

The first format redirects all requests to the given --column3 to the provided --column4(s). The second format clears all previous config values for that --column3 combination. To allow easy overriding of all the settings inherited from the system config, an empty value will reset all resolution information to the empty list.

http.sslVersion

The SSL version to use when negotiating an SSL connection, if you want to force the default. The available and default version depend on whether libcurl was built against NSS or OpenSSL and the particular configuration of the crypto library in use. Internally this sets the CURLOPT_SSL_VERSION option; see the libcurl documentation for more details on the format of this option and for the ssl version supported. Currently the possible values of this option are:

  • sslv2

  • sslv3

  • tlsv1

  • tlsv1.0

  • tlsv1.1

  • tlsv1.2

  • tlsv1.3

Can be overridden by the --column6 environment variable. To force git to use libcurl’s default ssl version and ignore any explicit http.sslversion option, set --column6 to the empty string.

http.sslCipherList

A list of SSL ciphers to use when negotiating an SSL connection. The available ciphers depend on whether libcurl was built against NSS or OpenSSL and the particular configuration of the crypto library in use. Internally this sets the CURLOPT_SSL_CIPHER_LIST option; see the libcurl documentation for more details on the format of this list.

Can be overridden by the --column8 environment variable. To force git to use libcurl’s default cipher list and ignore any explicit http.sslCipherList option, set --column8 to the empty string.

http.sslVerify

Whether to verify the SSL certificate when fetching or pushing over HTTPS. Defaults to true. Can be overridden by the --basic-regexp0 environment variable.

http.sslCert

File containing the SSL certificate when fetching or pushing over HTTPS. Can be overridden by the --basic-regexp1 environment variable.

http.sslKey

File containing the SSL private key when fetching or pushing over HTTPS. Can be overridden by the --basic-regexp2 environment variable.

http.sslCertPasswordProtected

Enable Git’s password prompt for the SSL certificate. Otherwise OpenSSL will prompt the user, possibly many times, if the certificate or private key is encrypted. Can be overridden by the --basic-regexp3 environment variable.

http.sslCAInfo

File containing the certificates to verify the peer with when fetching or pushing over HTTPS. Can be overridden by the --basic-regexp4 environment variable.

http.sslCAPath

Path containing files with the CA certificates to verify the peer with when fetching or pushing over HTTPS. Can be overridden by the --basic-regexp5 environment variable.

http.sslBackend

Name of the SSL backend to use (e.g. "openssl" or "schannel"). This option is ignored if cURL lacks support for choosing the SSL backend at runtime.

http.schannelCheckRevoke

Used to enforce or disable certificate revocation checks in cURL when http.sslBackend is set to "schannel". Defaults to --basic-regexp6 if unset. Only necessary to disable this if Git consistently errors and the message is about checking the revocation status of a certificate. This option is ignored if cURL lacks support for setting the relevant SSL option at runtime.

http.schannelUseSSLCAInfo

As of cURL v7.60.0, the Secure Channel backend can use the certificate bundle provided via --basic-regexp7, but that would override the Windows Certificate Store. Since this is not desirable by default, Git will tell cURL not to use that bundle by default when the --basic-regexp8 backend was configured via --basic-regexp9, unless --extended-regexp0 overrides this behavior.

http.pinnedPubkey

Public key of the https service. It may either be the filename of a PEM or DER encoded public key file or a string starting with sha256// followed by the base64 encoded sha256 hash of the public key. See also libcurl CURLOPT_PINNEDPUBLICKEY. git will exit with an error if this option is set but not supported by cURL.

http.sslTry

Attempt to use AUTH SSL/TLS and encrypted data transfers when connecting via regular FTP protocol. This might be needed if the FTP server requires it for security reasons or you wish to connect securely whenever remote FTP server supports it. Default is false since it might trigger certificate verification errors on misconfigured servers.

http.maxRequests

How many HTTP requests to launch in parallel. Can be overridden by the --extended-regexp1 environment variable. Default is 5.

http.minSessions

The number of curl sessions (counted across slots) to be kept across requests. They will not be ended with curl_easy_cleanup() until http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this value will be capped at 1. Defaults to 1.

http.postBuffer

Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.

Note that raising this limit is only effective for disabling chunked transfer encoding and therefore should be used only where the remote server or a proxy only supports HTTP/1.0 or is noncompliant with the HTTP standard. Raising this is not, in general, an effective solution for most push problems, but can increase memory consumption significantly since the entire buffer is allocated even for small pushes.

If the HTTP transfer speed is less than http.lowSpeedLimit for longer than http.lowSpeedTime seconds, the transfer is aborted. Can be overridden by the --extended-regexp2 and --extended-regexp3 environment variables.

http.noEPSV

A boolean which disables using of EPSV ftp command by curl. This can helpful with some "poor" ftp servers which don’t support EPSV mode. Can be overridden by the --extended-regexp4 environment variable. Default is false (curl will use EPSV).

http.userAgent

The HTTP USER_AGENT string presented to an HTTP server. The default value represents the version of the client Git such as git/1.7.1. This option allows you to override this value to a more common value such as Mozilla/4.0. This may be necessary, for instance, if connecting through a firewall that restricts HTTP connections to a set of common USER_AGENT strings (but not including those like git/1.7.1). Can be overridden by the --extended-regexp5 environment variable.

http.followRedirects

Whether git should follow HTTP redirects. If set to --basic-regexp6, git will transparently follow any redirect issued by a server it encounters. If set to --extended-regexp7, git will treat all redirects as errors. If set to --extended-regexp8, git will follow redirects only for the initial request to a remote, but not for subsequent follow-up HTTP requests. Since git uses the redirected URL as the base for the follow-up requests, this is generally sufficient. The default is --extended-regexp8.

http..*

Any of the http.* options above can be applied selectively to some URLs. For a config key to match a URL, each element of the config key is compared to that of the URL, in the following order:

  1. Scheme (e.g., --fixed-strings0 in --fixed-strings1). This field must match exactly between the config key and the URL.

  2. Host/domain name (e.g., --fixed-strings2 in --fixed-strings1). This field must match between the config key and the URL. It is possible to specify a --fixed-strings4 as part of the host name to match all subdomains at this level. --fixed-strings5 for example would match --fixed-strings6, but not --fixed-strings7.

  3. Port number (e.g., --fixed-strings8 in --fixed-strings9). This field must match exactly between the config key and the URL. Omitted port numbers are automatically converted to the correct default for the scheme before matching.

  4. Path (e.g.,

    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    00 in
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    01). The path field of the config key must match the path field of the URL either exactly or as a prefix of slash-delimited path elements. This means a config key with path
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    02 matches URL path
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    03. A prefix can only match on a slash (
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    04) boundary. Longer matches take precedence (so a config key with path
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    03 is a better match to URL path
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    03 than a config key with just path
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    02).

  5. User name (e.g.,

    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    08 in
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    09). If the config key has a user name it must match the user name in the URL exactly. If the config key does not have a user name, that config key will match a URL with any user name (including none), but at a lower precedence than a config key with a user name.

The list above is ordered by decreasing precedence; a URL that matches a config key’s path is preferred to one that matches its user name. For example, if the URL is

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
10 a config key match of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
11 will be preferred over a config key match of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
12.

All URLs are normalized before attempting any matching (the password part, if embedded in the URL, is always ignored for matching purposes) so that equivalent URLs that are simply spelled differently will match properly. Environment variable settings always override any matches. The URLs that are matched against are those given directly to Git commands. This means any URLs visited as a result of a redirection do not participate in matching.

i18n.commitEncoding

Character encoding the commit messages are stored in; Git itself does not care per se, but this information is necessary e.g. when importing commits from emails or in the gitk graphical history browser (and possibly at other places in the future or in other porcelains). See e.g. git-mailinfo[1]. Defaults to utf-8.

i18n.logOutputEncoding

Character encoding the commit messages are converted to when running git log and friends.

imap.folder

The folder to drop the mails into, which is typically the Drafts folder. For example: "INBOX.Drafts", "INBOX/Drafts" or "[Gmail]/Drafts". Required.

imap.tunnel

Command used to setup a tunnel to the IMAP server through which commands will be piped instead of using a direct network connection to the server. Required when imap.host is not set.

imap.host

A URL identifying the server. Use an

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
13 prefix for non-secure connections and an
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
14 prefix for secure connections. Ignored when imap.tunnel is set, but required otherwise.

imap.user

The username to use when logging in to the server.

imap.pass

The password to use when logging in to the server.

imap.port

An integer port number to connect to on the server. Defaults to 143 for imap:// hosts and 993 for imaps:// hosts. Ignored when imap.tunnel is set.

imap.sslverify

A boolean to enable/disable verification of the server certificate used by the SSL/TLS connection. Default is --basic-regexp6. Ignored when imap.tunnel is set.

imap.preformattedHTML

A boolean to enable/disable the use of html encoding when sending a patch. An html encoded patch will be bracketed with

and have a content type of text/html.  Ironically, enabling this
option causes Thunderbird to send the patch as a plain/text,
format=fixed email.  Default is false.
imap.authMethod

Specify authenticate method for authentication with IMAP server. If Git was built with the NO_CURL option, or if your curl version is older than 7.34.0, or if you’re running git-imap-send with the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
16 option, the only supported method is CRAM-MD5. If this is not set then git imap-send uses the basic IMAP plaintext LOGIN command.

include.pathincludeIf..path

Special variables to include other configuration files. See the "CONFIGURATION FILE" section in the main git-config[1] documentation, specifically the "Includes" and "Conditional Includes" subsections.

index.recordEndOfIndexEntries

Specifies whether the index file should include an "End Of Index Entry" section. This reduces index load time on multiprocessor machines but produces a message "ignoring EOIE extension" when reading the index using Git versions before 2.20. Defaults to true if index.threads has been explicitly enabled, false otherwise.

index.recordOffsetTable

Specifies whether the index file should include an "Index Entry Offset Table" section. This reduces index load time on multiprocessor machines but produces a message "ignoring IEOT extension" when reading the index using Git versions before 2.20. Defaults to true if index.threads has been explicitly enabled, false otherwise.

index.sparse

When enabled, write the index using sparse-directory entries. This has no effect unless

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
17 and
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
18 are both enabled. Defaults to false.

index.threads

Specifies the number of threads to spawn when loading the index. This is meant to reduce index load time on multiprocessor machines. Specifying 0 or true will cause Git to auto-detect the number of CPU’s and set the number of threads accordingly. Specifying 1 or false will disable multithreading. Defaults to true.

index.version

Specify the version with which new index files should be initialized. This does not affect existing repositories. If

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
19 is enabled, then the default is 4.

init.templateDir

Specify the directory from which templates will be copied. (See the "TEMPLATE DIRECTORY" section of git-init[1].)

init.defaultBranch

Allows overriding the default branch name e.g. when initializing a new repository.

instaweb.browser

Specify the program that will be used to browse your working repository in gitweb. See git-instaweb[1].

instaweb.httpd

The HTTP daemon command-line to start gitweb on your working repository. See git-instaweb[1].

instaweb.local

If true the web server started by git-instaweb[1] will be bound to the local IP (127.0.0.1).

instaweb.modulePath

The default module path for git-instaweb[1] to use instead of /usr/lib/apache2/modules. Only used if httpd is Apache.

instaweb.port

The port number to bind the gitweb httpd to. See git-instaweb[1].

interactive.singleKey

In interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter). Currently this is used by the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
20 mode of git-add[1], git-checkout[1], git-restore[1], git-commit[1], git-reset[1], and git-stash[1]. Note that this setting is silently ignored if portable keystroke input is not available; requires the Perl module Term::ReadKey.

interactive.diffFilter

When an interactive command (such as

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
21) shows a colorized diff, git will pipe the diff through the shell command defined by this configuration variable. The command may mark up the diff further for human consumption, provided that it retains a one-to-one correspondence with the lines in the original diff. Defaults to disabled (no filtering).

log.abbrevCommit

If true, makes git-log[1], git-show[1], and git-whatchanged[1] assume

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
22. You may override this option with
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
23.

Set the default date-time mode for the log command. Setting a value for log.date is similar to using git log's

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
24 option. See git-log[1] for details.

If the format is set to "auto:foo" and the pager is in use, format "foo" will be the used for the date format. Otherwise "default" will be used.

log.decorate

Print out the ref names of any commits that are shown by the log command. If short is specified, the ref name prefixes refs/heads/, refs/tags/ and refs/remotes/ will not be printed. If full is specified, the full ref name (including prefix) will be printed. If auto is specified, then if the output is going to a terminal, the ref names are shown as if short were given, otherwise no ref names are shown. This is the same as the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
25 option of the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
26.

log.initialDecorationSet

By default,

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
26 only shows decorations for certain known ref namespaces. If all is specified, then show all refs as decorations.

log.excludeDecoration

Exclude the specified patterns from the log decorations. This is similar to the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
28 command-line option, but the config option can be overridden by the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
29 option.

log.diffMerges

Set diff format to be used when

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
30 is specified, see
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
31 in git-log[1] for details. Defaults to
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
32.

log.follow

If --basic-regexp6,

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
26 will act as if the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
35 option was used when a singleis given. This has the same limitations as
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
35, i.e. it cannot be used to follow multiple files and does not work well on non-linear history.

log.graphColors

A list of colors, separated by commas, that can be used to draw history lines in

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
37.

log.showRoot

If true, the initial commit will be shown as a big creation event. This is equivalent to a diff against an empty tree. Tools like git-log[1] or git-whatchanged[1], which normally hide the root commit will now show it. True by default.

log.showSignature

If true, makes git-log[1], git-show[1], and git-whatchanged[1] assume

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
38.

log.mailmap

If true, makes git-log[1], git-show[1], and git-whatchanged[1] assume

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
39, otherwise assume
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
40. True by default.

lsrefs.unborn

May be "advertise" (the default), "allow", or "ignore". If "advertise", the server will respond to the client sending "unborn" (as described in gitprotocol-v2[5]) and will advertise support for this feature during the protocol v2 capability advertisement. "allow" is the same as "advertise" except that the server will not advertise support for this feature; this is useful for load-balanced servers that cannot be updated atomically (for example), since the administrator could configure "allow", then after a delay, configure "advertise".

mailinfo.scissors

If true, makes git-mailinfo[1] (and therefore git-am[1]) act by default as if the --scissors option was provided on the command-line. When active, this features removes everything from the message body before a scissors line (i.e. consisting mainly of ">8", "8<" and "-").

mailmap.file

The location of an augmenting mailmap file. The default mailmap, located in the root of the repository, is loaded first, then the mailmap file pointed to by this variable. The location of the mailmap file may be in a repository subdirectory, or somewhere outside of the repository itself. See git-shortlog[1] and git-blame[1].

mailmap.blob

Like

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
41, but consider the value as a reference to a blob in the repository. If both
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
41 and
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
43 are given, both are parsed, with entries from
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
41 taking precedence. In a bare repository, this defaults to
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
45. In a non-bare repository, it defaults to empty.

maintenance.auto

This boolean config option controls whether some commands run

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
46 after doing their normal work. Defaults to true.

maintenance.strategy

This string config option provides a way to specify one of a few recommended schedules for background maintenance. This only affects which tasks are run during

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
47 commands, provided no
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
48 arguments are provided. Further, if a
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
49 config value is set, then that value is used instead of the one provided by
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
50. The possible strategy strings are:

  • -n9: This default setting implies no task are run at any schedule.

  • Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    52: This setting optimizes for performing small maintenance activities that do not delete any data. This does not schedule the
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    53 task, but runs the
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    54 and
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    55 tasks hourly, the
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    56 and
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    57 tasks daily, and the
    Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    58 task weekly.

maintenance..enabled

This boolean config option controls whether the maintenance task with name

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
59 is run when no
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
60 option is specified to
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
61. These config values are ignored if a
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
60 option exists. By default, only
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
63 is true.

maintenance..schedule

This config option controls whether or not the given

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
59 runs during a
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
65 command. The value must be one of "hourly", "daily", or "weekly".

maintenance.commit-graph.auto

This integer config option controls how often the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
55 task should be run as part of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
46. If zero, then the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
55 task will not run with the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
69 option. A negative value will force the task to run every time. Otherwise, a positive value implies the command should run when the number of reachable commits that are not in the commit-graph file is at least the value of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
70. The default value is 100.

maintenance.loose-objects.auto

This integer config option controls how often the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
56 task should be run as part of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
46. If zero, then the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
56 task will not run with the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
69 option. A negative value will force the task to run every time. Otherwise, a positive value implies the command should run when the number of loose objects is at least the value of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
75. The default value is 100.

maintenance.incremental-repack.auto

This integer config option controls how often the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
57 task should be run as part of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
46. If zero, then the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
57 task will not run with the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
69 option. A negative value will force the task to run every time. Otherwise, a positive value implies the command should run when the number of pack-files not in the multi-pack-index is at least the value of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
80. The default value is 10.

man.viewer

Specify the programs that may be used to display help in the man format. See git-help[1].

man..cmd

Specify the command to invoke the specified man viewer. The specified command is evaluated in shell with the man page passed as argument. (See git-help[1].)

man..path

Override the path for the given tool that may be used to display help in the man format. See git-help[1].

merge.conflictStyle

Specify the style in which conflicted hunks are written out to working tree files upon merge. The default is "merge", which shows a

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
81 conflict marker, changes made by one side, a
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
82 marker, changes made by the other side, and then a
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
83 marker. An alternate style, "diff3", adds a
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
84 marker and the original text before the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
82 marker. The "merge" style tends to produce smaller conflict regions than diff3, both because of the exclusion of the original text, and because when a subset of lines match on the two sides they are just pulled out of the conflict region. Another alternate style, "zdiff3", is similar to diff3 but removes matching lines on the two sides from the conflict region when those matching lines appear near either the beginning or end of a conflict region.

merge.defaultToUpstream

If merge is called without any commit argument, merge the upstream branches configured for the current branch by using their last observed values stored in their remote-tracking branches. The values of the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
86 that name the branches at the remote named by
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
87 are consulted, and then they are mapped via
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
88 to their corresponding remote-tracking branches, and the tips of these tracking branches are merged. Defaults to true.

merge.ff

By default, Git does not create an extra merge commit when merging a commit that is a descendant of the current commit. Instead, the tip of the current branch is fast-forwarded. When set to --extended-regexp7, this variable tells Git to create an extra merge commit in such a case (equivalent to giving the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
90 option from the command line). When set to
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
91, only such fast-forward merges are allowed (equivalent to giving the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
92 option from the command line).

merge.verifySignatures

If true, this is equivalent to the --verify-signatures command line option. See git-merge[1] for details.

merge.branchdesc

In addition to branch names, populate the log message with the branch description text associated with them. Defaults to false.

merge.log

In addition to branch names, populate the log message with at most the specified number of one-line descriptions from the actual commits that are being merged. Defaults to false, and true is a synonym for 20.

merge.suppressDest

By adding a glob that matches the names of integration branches to this multi-valued configuration variable, the default merge message computed for merges into these integration branches will omit "into" from its title.

An element with an empty value can be used to clear the list of globs accumulated from previous configuration entries. When there is no

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
93 variable defined, the default value of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
94 is used for backward compatibility.

merge.renameLimit

The number of files to consider in the exhaustive portion of rename detection during a merge. If not specified, defaults to the value of diff.renameLimit. If neither merge.renameLimit nor diff.renameLimit are specified, currently defaults to 7000. This setting has no effect if rename detection is turned off.

merge.renames

Whether Git detects renames. If set to "false", rename detection is disabled. If set to "true", basic rename detection is enabled. Defaults to the value of diff.renames.

merge.directoryRenames

Whether Git detects directory renames, affecting what happens at merge time to new files added to a directory on one side of history when that directory was renamed on the other side of history. If merge.directoryRenames is set to "false", directory rename detection is disabled, meaning that such new files will be left behind in the old directory. If set to "true", directory rename detection is enabled, meaning that such new files will be moved into the new directory. If set to "conflict", a conflict will be reported for such paths. If merge.renames is false, merge.directoryRenames is ignored and treated as false. Defaults to "conflict".

merge.renormalize

Tell Git that canonical representation of files in the repository has changed over time (e.g. earlier commits record text files with CRLF line endings, but recent ones use LF line endings). In such a repository, Git can convert the data recorded in commits to a canonical form before performing a merge to reduce unnecessary conflicts. For more information, see section "Merging branches with differing checkin/checkout attributes" in gitattributes[5].

merge.stat

Whether to print the diffstat between ORIG_HEAD and the merge result at the end of the merge. True by default.

merge.autoStash

When set to true, automatically create a temporary stash entry before the operation begins, and apply it after the operation ends. This means that you can run merge on a dirty worktree. However, use with care: the final stash application after a successful merge might result in non-trivial conflicts. This option can be overridden by the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
95 and
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
96 options of git-merge[1]. Defaults to false.

merge.tool

Controls which merge tool is used by git-mergetool[1]. The list below shows the valid built-in values. Any other value is treated as a custom merge tool and requires that a corresponding mergetool..cmd variable is defined.

merge.guitool

Controls which merge tool is used by git-mergetool[1] when the -g/--gui flag is specified. The list below shows the valid built-in values. Any other value is treated as a custom merge tool and requires that a corresponding mergetool..cmd variable is defined.

  • araxis

  • bc

  • codecompare

  • deltawalker

  • diffmerge

  • diffuse

  • ecmerge

  • emerge

  • examdiff

  • guiffy

  • gvimdiff

  • kdiff3

  • meld

  • nvimdiff

  • opendiff

  • p4merge

  • smerge

  • tkdiff

  • tortoisemerge

  • vimdiff

  • winmerge

  • xxdiff

merge.verbosity

Controls the amount of output shown by the recursive merge strategy. Level 0 outputs nothing except a final error message if conflicts were detected. Level 1 outputs only conflicts, 2 outputs conflicts and file changes. Level 5 and above outputs debugging information. The default is level 2. Can be overridden by the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
97 environment variable.

merge..name

Defines a human-readable name for a custom low-level merge driver. See gitattributes[5] for details.

merge..driver

Defines the command that implements a custom low-level merge driver. See gitattributes[5] for details.

merge..recursive

Names a low-level merge driver to be used when performing an internal merge between common ancestors. See gitattributes[5] for details.

mergetool..path

Override the path for the given tool. This is useful in case your tool is not in the PATH.

mergetool..cmd

Specify the command to invoke the specified merge tool. The specified command is evaluated in shell with the following variables available: BASE is the name of a temporary file containing the common base of the files to be merged, if available; LOCAL is the name of a temporary file containing the contents of the file on the current branch; REMOTE is the name of a temporary file containing the contents of the file from the branch being merged; MERGED contains the name of the file to which the merge tool should write the results of a successful merge.

mergetool..hideResolved

Allows the user to override the global

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
98 value for a specific tool. See
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
98 for the full description.

mergetool..trustExitCode

For a custom merge command, specify whether the exit code of the merge command can be used to determine whether the merge was successful. If this is not set to true then the merge target file timestamp is checked and the merge assumed to have been successful if the file has been updated, otherwise the user is prompted to indicate the success of the merge.

mergetool.meld.hasOutput

Older versions of

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
00 do not support the
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
01 option. Git will attempt to detect whether
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
00 supports
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
01 by inspecting the output of
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
04. Configuring
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
05 will make Git skip these checks and use the configured value instead. Setting
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
05 to --basic-regexp6 tells Git to unconditionally use the
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
01 option, and --extended-regexp7 avoids using
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
01.

mergetool.meld.useAutoMerge

When the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
11 is given, meld will merge all non-conflicting parts automatically, highlight the conflicting parts and wait for user decision. Setting
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
12 to --basic-regexp6 tells Git to unconditionally use the
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
11 option with
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
00. Setting this value to
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
16 makes git detect whether
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
11 is supported and will only use
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
11 when available. A value of --extended-regexp7 avoids using
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
11 altogether, and is the default value.

mergetool.vimdiff.layout

The vimdiff backend uses this variable to control how its split windows look like. Applies even if you are using Neovim (

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
21) or gVim (
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
22) as the merge tool. See BACKEND SPECIFIC HINTS section in git-mergetool[1]. for details.

mergetool.hideResolved

During a merge Git will automatically resolve as many conflicts as possible and write the MERGED file containing conflict markers around any conflicts that it cannot resolve; LOCAL and REMOTE normally represent the versions of the file from before Git’s conflict resolution. This flag causes LOCAL and REMOTE to be overwritten so that only the unresolved conflicts are presented to the merge tool. Can be configured per-tool via the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
23 configuration variable. Defaults to --extended-regexp7.

mergetool.keepBackup

After performing a merge, the original file with conflict markers can be saved as a file with a

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
25 extension. If this variable is set to --extended-regexp7 then this file is not preserved. Defaults to --basic-regexp6 (i.e. keep the backup files).

mergetool.keepTemporaries

When invoking a custom merge tool, Git uses a set of temporary files to pass to the tool. If the tool returns an error and this variable is set to --basic-regexp6, then these temporary files will be preserved, otherwise they will be removed after the tool has exited. Defaults to --extended-regexp7.

mergetool.writeToTemp

Git writes temporary BASE, LOCAL, and REMOTE versions of conflicting files in the worktree by default. Git will attempt to use a temporary directory for these files when set --basic-regexp6. Defaults to --extended-regexp7.

mergetool.prompt

Prompt before each invocation of the merge resolution program.

notes.mergeStrategy

Which merge strategy to choose by default when resolving notes conflicts. Must be one of

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
32,
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
33,
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
34,
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
35, or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
36. Defaults to
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
32. See "NOTES MERGE STRATEGIES" section of git-notes[1] for more information on each strategy.

This setting can be overridden by passing the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
38 option to git-notes[1].

notes..mergeStrategy

Which merge strategy to choose when doing a notes merge into refs/notes/. This overrides the more general "notes.mergeStrategy". See the "NOTES MERGE STRATEGIES" section in git-notes[1] for more information on the available strategies.

notes.displayRef

Which ref (or refs, if a glob or specified more than once), in addition to the default set by

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
39 or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
40, to read notes from when showing commit messages with the git log family of commands.

This setting can be overridden with the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
41 environment variable, which must be a colon separated list of refs or globs.

A warning will be issued for refs that do not exist, but a glob that does not match any refs is silently ignored.

This setting can be disabled by the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
42 option to the git log family of commands, or by the
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
43 option accepted by those commands.

The effective value of "core.notesRef" (possibly overridden by GIT_NOTES_REF) is also implicitly added to the list of refs to be displayed.

notes.rewrite.

When rewriting commits with(currently

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
44 or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
45), if this variable is --extended-regexp7, git will not copy notes from the original to the rewritten commit. Defaults to --basic-regexp6. See also "
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
48" below.

This setting can be overridden with the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
49 environment variable, which must be a colon separated list of refs or globs.

notes.rewriteMode

When copying notes during a rewrite (see the "notes.rewrite." option), determines what to do if the target commit already has a note. Must be one of

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
50,
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
51,
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
36, or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
53. Defaults to
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
51.

This setting can be overridden with the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
55 environment variable.

notes.rewriteRef

When copying notes during a rewrite, specifies the (fully qualified) ref whose notes should be copied. May be a glob, in which case notes in all matching refs will be copied. You may also specify this configuration several times.

Does not have a default value; you must configure this variable to enable note rewriting. Set it to

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
56 to enable rewriting for the default commit notes.

Can be overridden with the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
49 environment variable. See
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
58 above for a further description of its format.

pack.window

The size of the window used by git-pack-objects[1] when no window size is given on the command line. Defaults to 10.

pack.depth

The maximum delta depth used by git-pack-objects[1] when no maximum depth is given on the command line. Defaults to 50. Maximum value is 4095.

pack.windowMemory

The maximum size of memory that is consumed by each thread in git-pack-objects[1] for pack window memory when no limit is given on the command line. The value can be suffixed with "k", "m", or "g". When left unconfigured (or set explicitly to 0), there will be no limit.

pack.compression

An integer -1..9, indicating the compression level for objects in a pack file. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest. If not set, defaults to core.compression. If that is not set, defaults to -1, the zlib default, which is "a default compromise between speed and compression (currently equivalent to level 6)."

Note that changing the compression level will not automatically recompress all existing objects. You can force recompression by passing the -F option to git-repack[1].

pack.allowPackReuse

When true, and when reachability bitmaps are enabled, pack-objects will try to send parts of the bitmapped packfile verbatim. This can reduce memory and CPU usage to serve fetches, but might result in sending a slightly larger pack. Defaults to true.

pack.island

An extended regular expression configuring a set of delta islands. See "DELTA ISLANDS" in git-pack-objects[1] for details.

pack.islandCore

Specify an island name which gets to have its objects be packed first. This creates a kind of pseudo-pack at the front of one pack, so that the objects from the specified island are hopefully faster to copy into any pack that should be served to a user requesting these objects. In practice this means that the island specified should likely correspond to what is the most commonly cloned in the repo. See also "DELTA ISLANDS" in git-pack-objects[1].

pack.deltaCacheSize

The maximum memory in bytes used for caching deltas in git-pack-objects[1] before writing them out to a pack. This cache is used to speed up the writing object phase by not having to recompute the final delta result once the best match for all objects is found. Repacking large repositories on machines which are tight with memory might be badly impacted by this though, especially if this cache pushes the system into swapping. A value of 0 means no limit. The smallest size of 1 byte may be used to virtually disable this cache. Defaults to 256 MiB.

pack.deltaCacheLimit

The maximum size of a delta, that is cached in git-pack-objects[1]. This cache is used to speed up the writing object phase by not having to recompute the final delta result once the best match for all objects is found. Defaults to 1000. Maximum value is 65535.

pack.threads

Specifies the number of threads to spawn when searching for best delta matches. This requires that git-pack-objects[1] be compiled with pthreads otherwise this option is ignored with a warning. This is meant to reduce packing time on multiprocessor machines. The required amount of memory for the delta search window is however multiplied by the number of threads. Specifying 0 will cause Git to auto-detect the number of CPU’s and set the number of threads accordingly.

pack.indexVersion

Specify the default pack index version. Valid values are 1 for legacy pack index used by Git versions prior to 1.5.2, and 2 for the new pack index with capabilities for packs larger than 4 GB as well as proper protection against the repacking of corrupted packs. Version 2 is the default. Note that version 2 is enforced and this config option ignored whenever the corresponding pack is larger than 2 GB.

If you have an old Git that does not understand the version 2

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
59 file, cloning or fetching over a non native protocol (e.g. "http") that will copy both
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
60 file and corresponding
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
59 file from the other side may give you a repository that cannot be accessed with your older version of Git. If the
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
60 file is smaller than 2 GB, however, you can use git-index-pack[1] on the *.pack file to regenerate the
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
59 file.

pack.packSizeLimit

The maximum size of a pack. This setting only affects packing to a file when repacking, i.e. the git:// protocol is unaffected. It can be overridden by the

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
64 option of git-repack[1]. Reaching this limit results in the creation of multiple packfiles.

Note that this option is rarely useful, and may result in a larger total on-disk size (because Git will not store deltas between packs), as well as worse runtime performance (object lookup within multiple packs is slower than a single pack, and optimizations like reachability bitmaps cannot cope with multiple packs).

If you need to actively run Git using smaller packfiles (e.g., because your filesystem does not support large files), this option may help. But if your goal is to transmit a packfile over a medium that supports limited sizes (e.g., removable media that cannot store the whole repository), you are likely better off creating a single large packfile and splitting it using a generic multi-volume archive tool (e.g., Unix

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
65).

The minimum size allowed is limited to 1 MiB. The default is unlimited. Common unit suffixes of k, m, or g are supported.

pack.useBitmaps

When true, git will use pack bitmaps (if available) when packing to stdout (e.g., during the server side of a fetch). Defaults to true. You should not generally need to turn this off unless you are debugging pack bitmaps.

pack.useSparse

When true, git will default to using the --sparse option in git pack-objects when the --revs option is present. This algorithm only walks trees that appear in paths that introduce new objects. This can have significant performance benefits when computing a pack to send a small change. However, it is possible that extra objects are added to the pack-file if the included commits contain certain types of direct renames. Default is --basic-regexp6.

pack.preferBitmapTips

When selecting which commits will receive bitmaps, prefer a commit at the tip of any reference that is a suffix of any value of this configuration over any other commits in the "selection window".

Note that setting this configuration to

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
67 does not mean that the commits at the tips of
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
68 and
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
69 will necessarily be selected. This is because commits are selected for bitmaps from within a series of windows of variable length.

If a commit at the tip of any reference which is a suffix of any value of this configuration is seen in a window, it is immediately given preference over any other commit in that window.

This is a deprecated synonym for

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
70.

pack.writeBitmapHashCache

When true, git will include a "hash cache" section in the bitmap index (if one is written). This cache can be used to feed git’s delta heuristics, potentially leading to better deltas between bitmapped and non-bitmapped objects (e.g., when serving a fetch between an older, bitmapped pack and objects that have been pushed since the last gc). The downside is that it consumes 4 bytes per object of disk space. Defaults to true.

When writing a multi-pack reachability bitmap, no new namehashes are computed; instead, any namehashes stored in an existing bitmap are permuted into their appropriate location when writing a new bitmap.

pack.writeBitmapLookupTable

When true, Git will include a "lookup table" section in the bitmap index (if one is written). This table is used to defer loading individual bitmaps as late as possible. This can be beneficial in repositories that have relatively large bitmap indexes. Defaults to false.

pack.writeReverseIndex

When true, git will write a corresponding .rev file (see: gitformat-pack[5]) for each new packfile that it writes in all places except for git-fast-import[1] and in the bulk checkin mechanism. Defaults to false.

If the value is boolean, turns on or off pagination of the output of a particular Git subcommand when writing to a tty. Otherwise, turns on pagination for the subcommand using the pager specified by the value of

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
71. If
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
72 or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
73 is specified on the command line, it takes precedence over this option. To disable pagination for all commands, set
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
74 or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
75 to
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
76.

pretty.

Alias for a --pretty= format string, as specified in git-log[1]. Any aliases defined here can be used just as the built-in pretty formats could. For example, running

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
77 would cause the invocation
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
78 to be equivalent to running
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
79. Note that an alias with the same name as a built-in format will be silently ignored.

protocol.allow

If set, provide a user defined default policy for all protocols which don’t explicitly have a policy (

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
80). By default, if unset, known-safe protocols (http, https, git, ssh) have a default policy of --column1, known-dangerous protocols (ext) have a default policy of
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
9, and all other protocols (including file) have a default policy of
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
08. Supported policies:

  • --column1 - protocol is always able to be used.

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    9 - protocol is never able to be used.

  • Example:
    
    /etc/gitconfig
      push.pushoption = a
      push.pushoption = b
    
    ~/.gitconfig
      push.pushoption = c
    
    repo/.git/config
      push.pushoption =
      push.pushoption = b
    
    This will result in only b (a and c are cleared).
    08 - protocol is only able to be used when
    	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    87 is either unset or has a value of 1. This policy should be used when you want a protocol to be directly usable by the user but don’t want it used by commands which execute clone/fetch/push commands without user input, e.g. recursive submodule initialization.

protocol..allow

Set a policy to be used by protocol

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
59 with clone/fetch/push commands. See
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
89 above for the available policies.

The protocol names currently used by git are:

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    90: any local file-based path (including
    	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    91 URLs, or local paths)

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    92: the anonymous git protocol over a direct TCP connection (or proxy, if configured)

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    93: git over ssh (including
    	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    94 syntax,
    	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    95, etc).

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    96: git over http, both "smart http" and "dumb http". Note that this does not include --fixed-strings0; if you want to configure both, you must do so individually.

  • any external helpers are named by their protocol (e.g., use

    	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    98 to allow the
    	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    99 helper)

protocol.version

If set, clients will attempt to communicate with a server using the specified protocol version. If the server does not support it, communication falls back to version 0. If unset, the default is

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
00. Supported versions:

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    01 - the original wire protocol.

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    02 - the original wire protocol with the addition of a version string in the initial response from the server.

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    00 - Wire protocol version 2, see gitprotocol-v2[5].

pull.ff

By default, Git does not create an extra merge commit when merging a commit that is a descendant of the current commit. Instead, the tip of the current branch is fast-forwarded. When set to --extended-regexp7, this variable tells Git to create an extra merge commit in such a case (equivalent to giving the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
90 option from the command line). When set to
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
91, only such fast-forward merges are allowed (equivalent to giving the
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
92 option from the command line). This setting overrides
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
08 when pulling.

pull.rebase

When true, rebase branches on top of the fetched branch, instead of merging the default branch from the default remote when "git pull" is run. See "branch..rebase" for setting this on a per-branch basis.

When

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
09 (or just m), pass the
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
10 option to git rebase so that the local merge commits are included in the rebase (see git-rebase[1] for details).

When the value is

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
11 (or just i), the rebase is run in interactive mode.

NOTE: this is a possibly dangerous operation; do not use it unless you understand the implications (see git-rebase[1] for details).

pull.octopus

The default merge strategy to use when pulling multiple branches at once.

pull.twohead

The default merge strategy to use when pulling a single branch.

push.autoSetupRemote

If set to "true" assume

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
12 on default push when no upstream tracking exists for the current branch; this option takes effect with push.default options simple, upstream, and current. It is useful if by default you want new branches to be pushed to the default remote (like the behavior of push.default=current) and you also want the upstream tracking to be set. Workflows most likely to benefit from this option are simple central workflows where all branches are expected to have the same name on the remote.

push.default

Defines the action

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
13 should take if no refspec is given (whether from the command-line, config, or elsewhere). Different values are well-suited for specific workflows; for instance, in a purely central workflow (i.e. the fetch source is equal to the push destination),
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
14 is probably what you want. Possible values are:

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    15 - do not push anything (error out) unless a refspec is given. This is primarily meant for people who want to avoid mistakes by always being explicit.

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    16 - push the current branch to update a branch with the same name on the receiving end. Works in both central and non-central workflows.

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    14 - push the current branch back to the branch whose changes are usually integrated into the current branch (which is called
    	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    18). This mode only makes sense if you are pushing to the same repository you would normally pull from (i.e. central workflow).

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    19 - This is a deprecated synonym for
    	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    14.

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    21 - pushes the current branch with the same name on the remote.

    If you are working on a centralized workflow (pushing to the same repository you pull from, which is typically

    	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    22), then you need to configure an upstream branch with the same name.

    This mode is the default since Git 2.0, and is the safest option suited for beginners.

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    23 - push all branches having the same name on both ends. This makes the repository you are pushing to remember the set of branches that will be pushed out (e.g. if you always push maint and master there and no other branches, the repository you push to will have these two branches, and your local maint and master will be pushed there).

    To use this mode effectively, you have to make sure all the branches you would push out are ready to be pushed out before running git push, as the whole point of this mode is to allow you to push all of the branches in one go. If you usually finish work on only one branch and push out the result, while other branches are unfinished, this mode is not for you. Also this mode is not suitable for pushing into a shared central repository, as other people may add new branches there, or update the tip of existing branches outside your control.

    This used to be the default, but not since Git 2.0 (

    	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    21 is the new default).

push.followTags

If set to true enable

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
25 option by default. You may override this configuration at time of push by specifying
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
26.

push.gpgSign

May be set to a boolean value, or the string if-asked. A true value causes all pushes to be GPG signed, as if

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
27 is passed to git-push[1]. The string if-asked causes pushes to be signed if the server supports it, as if
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
28 is passed to git push. A false value may override a value from a lower-priority config file. An explicit command-line flag always overrides this config option.

push.pushOption

When no

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
29 argument is given from the command line,
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
13 behaves as if eachof this variable is given as
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
29.

This is a multi-valued variable, and an empty value can be used in a higher priority configuration file (e.g.

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
32 in a repository) to clear the values inherited from a lower priority configuration files (e.g.
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
33).

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).

push.recurseSubmodules

May be "check", "on-demand", "only", or "no", with the same behavior as that of "push --recurse-submodules". If not set, no is used by default, unless submodule.recurse is set (in which case a true value means on-demand).

push.useForceIfIncludes

If set to "true", it is equivalent to specifying

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
34 as an option to git-push[1] in the command line. Adding
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
35 at the time of push overrides this configuration setting.

push.negotiate

If set to "true", attempt to reduce the size of the packfile sent by rounds of negotiation in which the client and the server attempt to find commits in common. If "false", Git will rely solely on the server’s ref advertisement to find commits in common.

push.useBitmaps

If set to "false", disable use of bitmaps for "git push" even if

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
36 is "true", without preventing other git operations from using bitmaps. Default is true.

rebase.backend

Default backend to use for rebasing. Possible choices are apply or merge. In the future, if the merge backend gains all remaining capabilities of the apply backend, this setting may become unused.

rebase.stat

Whether to show a diffstat of what changed upstream since the last rebase. False by default.

rebase.autoSquash

If set to true enable

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
37 option by default.

rebase.autoStash

When set to true, automatically create a temporary stash entry before the operation begins, and apply it after the operation ends. This means that you can run rebase on a dirty worktree. However, use with care: the final stash application after a successful rebase might result in non-trivial conflicts. This option can be overridden by the

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
95 and
Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
96 options of git-rebase[1]. Defaults to false.

If set to true enable

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
40 option by default.

rebase.missingCommitsCheck

If set to "warn", git rebase -i will print a warning if some commits are removed (e.g. a line was deleted), however the rebase will still proceed. If set to "error", it will print the previous warning and stop the rebase, git rebase --edit-todo can then be used to correct the error. If set to "ignore", no checking is done. To drop a commit without warning or error, use the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
41 command in the todo list. Defaults to "ignore".

rebase.instructionFormat

A format string, as specified in git-log[1], to be used for the todo list during an interactive rebase. The format will automatically have the long commit hash prepended to the format.

rebase.abbreviateCommands

If set to true,

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
42 will use abbreviated command names in the todo list resulting in something like this:

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...

rebase.rescheduleFailedExec

Automatically reschedule

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
43 commands that failed. This only makes sense in interactive mode (or when an
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
44 option was provided). This is the same as specifying the
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
45 option.

rebase.forkPoint

If set to false set

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
46 option by default.

receive.advertiseAtomic

By default, git-receive-pack will advertise the atomic push capability to its clients. If you don’t want to advertise this capability, set this variable to false.

receive.advertisePushOptions

When set to true, git-receive-pack will advertise the push options capability to its clients. False by default.

receive.autogc

By default, git-receive-pack will run "git-gc --auto" after receiving data from git-push and updating refs. You can stop it by setting this variable to false.

receive.certNonceSeed

By setting this variable to a string,

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
47 will accept a
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
48 and verifies it by using a "nonce" protected by HMAC using this string as a secret key.

receive.certNonceSlop

When a

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
48 sent a push certificate with a "nonce" that was issued by a receive-pack serving the same repository within this many seconds, export the "nonce" found in the certificate to
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
50 to the hooks (instead of what the receive-pack asked the sending side to include). This may allow writing checks in
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
51 and
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
52 a bit easier. Instead of checking
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
53 environment variable that records by how many seconds the nonce is stale to decide if they want to accept the certificate, they only can check
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
54 is
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
55.

receive.fsckObjects

If it is set to true, git-receive-pack will check all received objects. See

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
56 for what’s checked. Defaults to false. If not set, the value of
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
56 is used instead.

receive.fsck.

Acts like

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
58, but is used by git-receive-pack[1] instead of git-fsck[1]. See the
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
58 documentation for details.

receive.fsck.skipList

Acts like

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
60, but is used by git-receive-pack[1] instead of git-fsck[1]. See the
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
60 documentation for details.

receive.keepAlive

After receiving the pack from the client,

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
62 may produce no output (if
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
63 was specified) while processing the pack, causing some networks to drop the TCP connection. With this option set, if
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
62 does not transmit any data in this phase for
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
65 seconds, it will send a short keepalive packet. The default is 5 seconds; set to 0 to disable keepalives entirely.

receive.unpackLimit

If the number of objects received in a push is below this limit then the objects will be unpacked into loose object files. However if the number of received objects equals or exceeds this limit then the received pack will be stored as a pack, after adding any missing delta bases. Storing the pack from a push can make the push operation complete faster, especially on slow filesystems. If not set, the value of

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
66 is used instead.

receive.maxInputSize

If the size of the incoming pack stream is larger than this limit, then git-receive-pack will error out, instead of accepting the pack file. If not set or set to 0, then the size is unlimited.

receive.denyDeletes

If set to true, git-receive-pack will deny a ref update that deletes the ref. Use this to prevent such a ref deletion via a push.

receive.denyDeleteCurrent

If set to true, git-receive-pack will deny a ref update that deletes the currently checked out branch of a non-bare repository.

receive.denyCurrentBranch

If set to true or "refuse", git-receive-pack will deny a ref update to the currently checked out branch of a non-bare repository. Such a push is potentially dangerous because it brings the HEAD out of sync with the index and working tree. If set to "warn", print a warning of such a push to stderr, but allow the push to proceed. If set to false or "ignore", allow such pushes with no message. Defaults to "refuse".

Another option is "updateInstead" which will update the working tree if pushing into the current branch. This option is intended for synchronizing working directories when one side is not easily accessible via interactive ssh (e.g. a live web site, hence the requirement that the working directory be clean). This mode also comes in handy when developing inside a VM to test and fix code on different Operating Systems.

By default, "updateInstead" will refuse the push if the working tree or the index have any difference from the HEAD, but the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
67 hook can be used to customize this. See githooks[5].

receive.denyNonFastForwards

If set to true, git-receive-pack will deny a ref update which is not a fast-forward. Use this to prevent such an update via a push, even if that push is forced. This configuration variable is set when initializing a shared repository.

receive.hideRefs

This variable is the same as

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
68, but applies only to
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
62 (and so affects pushes, but not fetches). An attempt to update or delete a hidden ref by
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
13 is rejected.

receive.procReceiveRefs

This is a multi-valued variable that defines reference prefixes to match the commands in

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
62. Commands matching the prefixes will be executed by an external hook "proc-receive", instead of the internal
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
72 function. If this variable is not defined, the "proc-receive" hook will never be used, and all commands will be executed by the internal
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
72 function.

For example, if this variable is set to "refs/for", pushing to reference such as "refs/for/master" will not create or update a reference named "refs/for/master", but may create or update a pull request directly by running the hook "proc-receive".

Optional modifiers can be provided in the beginning of the value to filter commands for specific actions: create (a), modify (m), delete (d). A

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
74 can be included in the modifiers to negate the reference prefix entry. E.g.:

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads

If set to true, git-receive-pack will run git-update-server-info after receiving data from git-push and updating refs.

If set to true, .git/shallow can be updated when new refs require new shallow roots. Otherwise those refs are rejected.

remote.pushDefault

The remote to push to by default. Overrides

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
87 for all branches, and is overridden by
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
76 for specific branches.

remote..url

The URL of a remote repository. See git-fetch[1] or git-push[1].

remote..pushurl

The push URL of a remote repository. See git-push[1].

remote..proxy

For remotes that require curl (http, https and ftp), the URL to the proxy to use for that remote. Set to the empty string to disable proxying for that remote.

remote..proxyAuthMethod

For remotes that require curl (http, https and ftp), the method to use for authenticating against the proxy in use (probably set in

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
77). See
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
78.

remote..fetch

The default set of "refspec" for git-fetch[1]. See git-fetch[1].

remote..push

The default set of "refspec" for git-push[1]. See git-push[1].

remote..mirror

If true, pushing to this remote will automatically behave as if the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
79 option was given on the command line.

If true, this remote will be skipped by default when updating using git-fetch[1] or the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
80 subcommand of git-remote[1].

remote..skipFetchAll

If true, this remote will be skipped by default when updating using git-fetch[1] or the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
80 subcommand of git-remote[1].

remote..receivepack

The default program to execute on the remote side when pushing. See option --receive-pack of git-push[1].

remote..uploadpack

The default program to execute on the remote side when fetching. See option --upload-pack of git-fetch-pack[1].

remote..tagOpt

Setting this value to --no-tags disables automatic tag following when fetching from remote. Setting it to --tags will fetch every tag from remote, even if they are not reachable from remote branch heads. Passing these flags directly to git-fetch[1] can override this setting. See options --tags and --no-tags of git-fetch[1].

remote..vcs

Setting this to a valuewill cause Git to interact with the remote with the git-remote-helper.

remote..prune

When set to true, fetching from this remote by default will also remove any remote-tracking references that no longer exist on the remote (as if the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
82 option was given on the command line). Overrides
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
83 settings, if any.

remote..pruneTags

When set to true, fetching from this remote by default will also remove any local tags that no longer exist on the remote if pruning is activated in general via

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
84,
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
83 or
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
82. Overrides
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
87 settings, if any.

See also

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
84 and the PRUNING section of git-fetch[1].

remote..promisor

When set to true, this remote will be used to fetch promisor objects.

remote..partialclonefilter

The filter that will be applied when fetching from this promisor remote. Changing or clearing this value will only affect fetches for new commits. To fetch associated objects for commits already present in the local object database, use the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
89 option of git-fetch[1].

remotes.

The list of remotes which are fetched by "git remote update". See git-remote[1].

repack.useDeltaBaseOffset

By default, git-repack[1] creates packs that use delta-base offset. If you need to share your repository with Git older than version 1.4.4, either directly or via a dumb protocol such as http, then you need to set this option to "false" and repack. Access from old Git versions over the native protocol are unaffected by this option.

repack.packKeptObjects

If set to true, makes

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
90 act as if
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
91 was passed. See git-repack[1] for details. Defaults to --extended-regexp7 normally, but --basic-regexp6 if a bitmap index is being written (either via
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
94 or
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
70).

repack.useDeltaIslands

If set to true, makes

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
90 act as if
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
97 was passed. Defaults to --extended-regexp7.

repack.writeBitmaps

When true, git will write a bitmap index when packing all objects to disk (e.g., when

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
99 is run). This index can speed up the "counting objects" phase of subsequent packs created for clones and fetches, at the cost of some disk space and extra time spent on the initial repack. This has no effect if multiple packfiles are created. Defaults to true on bare repos, false otherwise.

If set to false, git-repack[1] will not run git-update-server-info[1]. Defaults to true. Can be overridden when true by the -n option of git-repack[1].

repack.cruftWindowrepack.cruftWindowMemoryrepack.cruftDepthrepack.cruftThreads

Parameters used by git-pack-objects[1] when generating a cruft pack and the respective parameters are not given over the command line. See similarly named

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
01 configuration variables for defaults and meaning.

When set to true,

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
02 updates the index with the resulting contents after it cleanly resolves conflicts using previously recorded resolution. Defaults to false.

rerere.enabled

Activate recording of resolved conflicts, so that identical conflict hunks can be resolved automatically, should they be encountered again. By default, git-rerere[1] is enabled if there is an

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
03 directory under the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
04, e.g. if "rerere" was previously used in the repository.

revert.reference

Setting this variable to true makes

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
05 behave as if the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
06 option is given.

safe.bareRepository

Specifies which bare repositories Git will work with. The currently supported values are:

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    07: Git works with all bare repositories. This is the default.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    08: Git only works with bare repositories specified via the top-level
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    09 command-line option, or the
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    10 environment variable (see git[1]).

    If you do not use bare repositories in your workflow, then it may be beneficial to set

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    11 to
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    08 in your global config. This will protect you from attacks that involve cloning a repository that contains a bare repository and running a Git command within that directory.

    This config setting is only respected in protected configuration (see ). This prevents the untrusted repository from tampering with this value.

safe.directory

These config entries specify Git-tracked directories that are considered safe even if they are owned by someone other than the current user. By default, Git will refuse to even parse a Git config of a repository owned by someone else, let alone run its hooks, and this config setting allows users to specify exceptions, e.g. for intentionally shared repositories (see the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
13 option in git-init[1]).

This is a multi-valued setting, i.e. you can add more than one directory via

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
14. To reset the list of safe directories (e.g. to override any such directories specified in the system config), add a
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
15 entry with an empty value.

This config setting is only respected in protected configuration (see ). This prevents the untrusted repository from tampering with this value.

The value of this setting is interpolated, i.e.

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
16 expands to a path relative to the home directory and
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
17 expands to a path relative to Git’s (runtime) prefix.

To completely opt-out of this security check, set

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
15 to the string --fixed-strings4. This will allow all repositories to be treated as if their directory was listed in the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
15 list. If
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
21 is set in system config and you want to re-enable this protection, then initialize your list with an empty value before listing the repositories that you deem safe.

As explained, Git only allows you to access repositories owned by yourself, i.e. the user who is running Git, by default. When Git is running as root in a non Windows platform that provides sudo, however, git checks the SUDO_UID environment variable that sudo creates and will allow access to the uid recorded as its value in addition to the id from root. This is to make it easy to perform a common sequence during installation "make && sudo make install". A git process running under sudo runs as root but the sudo command exports the environment variable to record which id the original user has. If that is not what you would prefer and want git to only trust repositories that are owned by root instead, then you can remove the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
22 variable from root’s environment before invoking git.

sendemail.identity

A configuration identity. When given, causes values in the sendemail.subsection to take precedence over values in the sendemail section. The default identity is the value of

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
23.

sendemail.smtpEncryption

See git-send-email[1] for description. Note that this setting is not subject to the identity mechanism.

sendemail.smtpsslcertpath

Path to ca-certificates (either a directory or a single file). Set it to an empty string to disable certificate verification.

sendemail..*

Identity-specific versions of the sendemail.* parameters found below, taking precedence over those when this identity is selected, through either the command-line or

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
23.

sendemail.multiEdit

If true (default), a single editor instance will be spawned to edit files you have to edit (patches when

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
25 is used, and the summary when
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
26 is used). If false, files will be edited one after the other, spawning a new editor each time.

sendemail.confirm

Sets the default for whether to confirm before sending. Must be one of always, never, cc, compose, or auto. See

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
27 in the git-send-email[1] documentation for the meaning of these values.

sendemail.aliasesFile

To avoid typing long email addresses, point this to one or more email aliases files. You must also supply

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
28.

sendemail.aliasFileType

Format of the file(s) specified in sendemail.aliasesFile. Must be one of mutt, mailrc, pine, elm, or gnus, or sendmail.

What an alias file in each format looks like can be found in the documentation of the email program of the same name. The differences and limitations from the standard formats are described below:

sendmail

  • Quoted aliases and quoted addresses are not supported: lines that contain a

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    29 symbol are ignored.

  • Redirection to a file (

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    30) or pipe (
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    31) is not supported.

  • File inclusion (

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    32) is not supported.

  • Warnings are printed on the standard error output for any explicitly unsupported constructs, and any other lines that are not recognized by the parser.

sendemail.annotatesendemail.bccsendemail.ccsendemail.ccCmdsendemail.chainReplyTosendemail.envelopeSendersendemail.fromsendemail.signedoffbyccsendemail.smtpPasssendemail.suppressccsendemail.suppressFromsendemail.tosendemail.tocmdsendemail.smtpDomainsendemail.smtpServersendemail.smtpServerPortsendemail.smtpServerOptionsendemail.smtpUsersendemail.threadsendemail.transferEncodingsendemail.xmailer

These configuration variables all provide a default for git-send-email[1] command-line options. See its documentation for details.

Deprecated alias for

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
33.

sendemail.smtpBatchSize

Number of messages to be sent per connection, after that a relogin will happen. If the value is 0 or undefined, send all messages in one connection. See also the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
34 option of git-send-email[1].

sendemail.smtpReloginDelay

Seconds wait before reconnecting to smtp server. See also the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
35 option of git-send-email[1].

sendemail.forbidSendmailVariables

To avoid common misconfiguration mistakes, git-send-email[1] will abort with a warning if any configuration options for "sendmail" exist. Set this variable to bypass the check.

sequence.editor

Text editor used by

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
36 for editing the rebase instruction file. The value is meant to be interpreted by the shell when it is used. It can be overridden by the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
37 environment variable. When not configured the default commit message editor is used instead.

showBranch.default

The default set of branches for git-show-branch[1]. See git-show-branch[1].

sparse.expectFilesOutsideOfPatterns

Typically with sparse checkouts, files not matching any sparsity patterns are marked with a SKIP_WORKTREE bit in the index and are missing from the working tree. Accordingly, Git will ordinarily check whether files with the SKIP_WORKTREE bit are in fact present in the working tree contrary to expectations. If Git finds any, it marks those paths as present by clearing the relevant SKIP_WORKTREE bits. This option can be used to tell Git that such present-despite-skipped files are expected and to stop checking for them.

The default is --extended-regexp7, which allows Git to automatically recover from the list of files in the index and working tree falling out of sync.

Set this to --basic-regexp6 if you are in a setup where some external factor relieves Git of the responsibility for maintaining the consistency between the presence of working tree files and sparsity patterns. For example, if you have a Git-aware virtual file system that has a robust mechanism for keeping the working tree and the sparsity patterns up to date based on access patterns.

Regardless of this setting, Git does not check for present-despite-skipped files unless sparse checkout is enabled, so this config option has no effect unless

Example:

/etc/gitconfig
  push.pushoption = a
  push.pushoption = b

~/.gitconfig
  push.pushoption = c

repo/.git/config
  push.pushoption =
  push.pushoption = b

This will result in only b (a and c are cleared).
17 is --basic-regexp6.

splitIndex.maxPercentChange

When the split index feature is used, this specifies the percent of entries the split index can contain compared to the total number of entries in both the split index and the shared index before a new shared index is written. The value should be between 0 and 100. If the value is 0 then a new shared index is always written, if it is 100 a new shared index is never written. By default the value is 20, so a new shared index is written if the number of entries in the split index would be greater than 20 percent of the total number of entries. See git-update-index[1].

When the split index feature is used, shared index files that were not modified since the time this variable specifies will be removed when a new shared index file is created. The value "now" expires all entries immediately, and "never" suppresses expiration altogether. The default value is "2.weeks.ago". Note that a shared index file is considered modified (for the purpose of expiration) each time a new split-index file is either created based on it or read from it. See git-update-index[1].

ssh.variant

By default, Git determines the command line arguments to use based on the basename of the configured SSH command (configured using the environment variable

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
42 or
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
43 or the config setting
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
44). If the basename is unrecognized, Git will attempt to detect support of OpenSSH options by first invoking the configured SSH command with the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
45 (print configuration) option and will subsequently use OpenSSH options (if that is successful) or no options besides the host and remote command (if it fails).

The config variable

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
46 can be set to override this detection. Valid values are
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
93 (to use OpenSSH options),
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
48,
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
49,
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
50,
	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
21 (no options except the host and remote command). The default auto-detection can be explicitly requested using the value
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
16. Any other value is treated as
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
93. This setting can also be overridden via the environment variable
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
54.

The current command-line parameters used for each variant are as follows:

  • 	p deadbee The oneline of the commit
    	p fa1afe1 The oneline of the next commit
    	...
    93 - [-p port] [-4] [-6] [-o option] [username@]host command

  • 	pick deadbee The oneline of the commit
    	pick fa1afe1 The oneline of the next commit
    	...
    21 - [username@]host command

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    48 or
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    49 - [-P port] [-4] [-6] [username@]host command

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    50 - [-P port] [-4] [-6] -batch [username@]host command

Except for the

	pick deadbee The oneline of the commit
	pick fa1afe1 The oneline of the next commit
	...
21 variant, command-line parameters are likely to change as git gains new features.

status.relativePaths

By default, git-status[1] shows paths relative to the current directory. Setting this variable to --extended-regexp7 shows paths relative to the repository root (this was the default for Git prior to v1.5.4).

status.short

Set to true to enable --short by default in git-status[1]. The option --no-short takes precedence over this variable.

status.branch

Set to true to enable --branch by default in git-status[1]. The option --no-branch takes precedence over this variable.

status.aheadBehind

Set to true to enable

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
62 and false to enable
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
63 by default in git-status[1] for non-porcelain status formats. Defaults to true.

If set to true, git-status[1] will insert a comment prefix before each output line (starting with

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
64, i.e.
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
65 by default). This was the behavior of git-status[1] in Git 1.8.4 and previous. Defaults to false.

status.renameLimit

The number of files to consider when performing rename detection in git-status[1] and git-commit[1]. Defaults to the value of diff.renameLimit.

status.renames

Whether and how Git detects renames in git-status[1] and git-commit[1] . If set to "false", rename detection is disabled. If set to "true", basic rename detection is enabled. If set to "copies" or "copy", Git will detect copies, as well. Defaults to the value of diff.renames.

status.showStash

If set to true, git-status[1] will display the number of entries currently stashed away. Defaults to false.

status.showUntrackedFiles

By default, git-status[1] and git-commit[1] show files which are not currently tracked by Git. Directories which contain only untracked files, are shown with the directory name only. Showing untracked files means that Git needs to lstat() all the files in the whole repository, which might be slow on some systems. So, this variable controls how the commands displays the untracked files. Possible values are:

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    66 - Show no untracked files.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    67 - Show untracked files and directories.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    07 - Show also individual files in untracked directories.

If this variable is not specified, it defaults to normal. This variable can be overridden with the -u|--untracked-files option of git-status[1] and git-commit[1].

status.submoduleSummary

Defaults to false. If this is set to a non zero number or true (identical to -1 or an unlimited number), the submodule summary will be enabled and a summary of commits for modified submodules will be shown (see --summary-limit option of git-submodule[1]). Please note that the summary output command will be suppressed for all submodules when

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
69 is set to all or only for those submodules where
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
70. The only exception to that rule is that status and commit will show staged submodule changes. To also view the summary for ignored submodules you can either use the --ignore-submodules=dirty command-line option or the git submodule summary command, which shows a similar output but does not honor these settings.

stash.showIncludeUntracked

If this is set to true, the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
71 command will show the untracked files of a stash entry. Defaults to false. See description of show command in git-stash[1].

stash.showPatch

If this is set to true, the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
71 command without an option will show the stash entry in patch form. Defaults to false. See description of show command in git-stash[1].

stash.showStat

If this is set to true, the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
71 command without an option will show diffstat of the stash entry. Defaults to true. See description of show command in git-stash[1].

submodule..url

The URL for a submodule. This variable is copied from the .gitmodules file to the git config via git submodule init. The user can change the configured URL before obtaining the submodule via git submodule update. If neither submodule..active or submodule.active are set, the presence of this variable is used as a fallback to indicate whether the submodule is of interest to git commands. See git-submodule[1] and gitmodules[5] for details.

The method by which a submodule is updated by git submodule update, which is the only affected command, others such as git checkout --recurse-submodules are unaffected. It exists for historical reasons, when git submodule was the only command to interact with submodules; settings like

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
74 and
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
75 are more specific. It is populated by
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
76 from the gitmodules[5] file. See description of update command in git-submodule[1].

submodule..branch

The remote branch name for a submodule, used by

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
77. Set this option to override the value found in the
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
78 file. See git-submodule[1] and gitmodules[5] for details.

submodule..fetchRecurseSubmodules

This option can be used to control recursive fetching of this submodule. It can be overridden by using the --[no-]recurse-submodules command-line option to "git fetch" and "git pull". This setting will override that from in the gitmodules[5] file.

Defines under what circumstances "git status" and the diff family show a submodule as modified. When set to "all", it will never be considered modified (but it will nonetheless show up in the output of status and commit when it has been staged), "dirty" will ignore all changes to the submodules work tree and takes only differences between the HEAD of the submodule and the commit recorded in the superproject into account. "untracked" will additionally let submodules with modified tracked files in their work tree show up. Using "none" (the default when this option is not set) also shows submodules that have untracked files in their work tree as changed. This setting overrides any setting made in .gitmodules for this submodule, both settings can be overridden on the command line by using the "--ignore-submodules" option. The git submodule commands are not affected by this setting.

submodule..active

Boolean value indicating if the submodule is of interest to git commands. This config option takes precedence over the submodule.active config option. See gitsubmodules[7] for details.

submodule.active

A repeated field which contains a pathspec used to match against a submodule’s path to determine if the submodule is of interest to git commands. See gitsubmodules[7] for details.

submodule.recurse

A boolean indicating if commands should enable the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
79 option by default. Defaults to false.

When set to true, it can be deactivated via the

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
80 option. Note that some Git commands lacking this option may call some of the above commands affected by
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
81; for instance
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
82 will call
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
83 but does not have a
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
80 option. For these commands a workaround is to temporarily change the configuration value by using
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
85.

The following list shows the commands that accept

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
79 and whether they are supported by this setting.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    87,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    88,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    89,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    90,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    91,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    92,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    93,
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    94 and
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    95 are always supported.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    96 and
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    97 are not supported.

  • git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    98 is supported only if
    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads
    99 is enabled

submodule.propagateBranches

[EXPERIMENTAL] A boolean that enables branching support when using

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
79 or -n01. Enabling this will allow certain commands to accept
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
79 and certain commands that already accept
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
79 will now consider branches. Defaults to false.

submodule.fetchJobs

Specifies how many submodules are fetched/cloned at the same time. A positive integer allows up to that number of submodules fetched in parallel. A value of 0 will give some reasonable default. If unset, it defaults to 1.

Specifies how the submodules obtain alternates when submodules are cloned. Possible values are

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
66, -n05. By default
git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
66 is assumed, which doesn’t add references. When the value is set to -n05 the submodule to be cloned computes its alternates location relative to the superprojects alternate.

submodule.alternateErrorStrategy

Specifies how to treat errors with the alternates for a submodule as computed via -n08. Possible values are

	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
53, -n10, -n11. Default is -n11. Note that if set to
	p deadbee The oneline of the commit
	p fa1afe1 The oneline of the next commit
	...
53 or -n10, and if there is an error with the computed alternate, the clone proceeds as if no alternate was specified.

tag.forceSignAnnotated

A boolean to specify whether annotated tags created should be GPG signed. If

git config --system --add receive.procReceiveRefs ad:refs/heads
git config --system --add receive.procReceiveRefs !:refs/heads
25 is specified on the command line, it takes precedence over this option.

tag.sort

This variable controls the sort ordering of tags when displayed by git-tag[1]. Without the "--sort=" option provided, the value of this variable will be used as the default.

tag.gpgSign

A boolean to specify whether all tags should be GPG signed. Use of this option when running in an automated script can result in a large number of tags being signed. It is therefore convenient to use an agent to avoid typing your gpg passphrase several times. Note that this option doesn’t affect tag signing behavior enabled by "-u" or "--local-user=" options.

tar.umask

This variable can be used to restrict the permission bits of tar archive entries. The default is 0002, which turns off the world write bit. The special value "user" indicates that the archiving user’s umask will be used instead. See umask(2) and git-archive[1].

What is the function of the asterisk (*) in regular expressions?

In regular expressions, asterisk (*) means “match zero or more of the preceding character.” To make a “wildcard” (that is, an expression that matches anything) with regular expressions, you must use '. *' (dot asterisk). This expression means, “match zero or more of any character.”

What class is the split () method a member of?

The Split() method is part of the string class in C#. The method is used to split a string based on the delimiters passed to the string. The delimiters can be a character, an array of characters, or even an array of strings.

What are special characters in regex?

Special Regex Characters: These characters have special meaning in regex (to be discussed below): . , + , * , ? , ^ , $ , ( , ) , [ , ] , { , } , | , \ . Escape Sequences (\char): To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ). E.g., \. matches "."