summaryrefslogtreecommitdiffstats
path: root/git.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-10 14:42:31 -0700
committerJunio C Hamano <gitster@pobox.com>2022-10-10 14:42:31 -0700
commit53cd02b2a9159e3a20482f074bfc1a82e2e52ee1 (patch)
treecac5c5ea7340a723d32bd0a8c562022bd94258fd /git.html
parent02fd564899717e387af25eeaa48400110c084ec1 (diff)
downloadgit-htmldocs-53cd02b2a9159e3a20482f074bfc1a82e2e52ee1.tar.gz
Autogenerated HTML docs for v2.38.0-68-ge8570
Diffstat (limited to 'git.html')
-rw-r--r--git.html49
1 files changed, 32 insertions, 17 deletions
diff --git a/git.html b/git.html
index 066b525ab..ee7a000db 100644
--- a/git.html
+++ b/git.html
@@ -2848,7 +2848,11 @@ HEAD
<div class="sect1">
<h2 id="_environment_variables">Environment Variables</h2>
<div class="sectionbody">
-<div class="paragraph"><p>Various Git commands use the following environment variables:</p></div>
+<div class="paragraph"><p>Various Git commands pay attention to environment variables and change
+their behavior. The environment variables marked as "Boolean" take
+their values the same way as Boolean valued configuration variables, e.g.
+"true", "yes", "on" and positive numbers are taken as "yes".</p></div>
+<div class="paragraph"><p>Here are the variables:</p></div>
<div class="sect2">
<h3 id="_the_git_repository">The Git Repository</h3>
<div class="paragraph"><p>These environment variables apply to <em>all</em> core Git commands. Nb: it
@@ -2860,7 +2864,7 @@ Git so take care if using a foreign front-end.</p></div>
</dt>
<dd>
<p>
- This environment allows the specification of an alternate
+ This environment variable specifies an alternate
index file. If not specified, the default of <code>$GIT_DIR/index</code>
is used.
</p>
@@ -2870,8 +2874,8 @@ Git so take care if using a foreign front-end.</p></div>
</dt>
<dd>
<p>
- This environment variable allows the specification of an index
- version for new repositories. It won&#8217;t affect existing index
+ This environment variable specifies what index version is used
+ when writing the index file out. It won&#8217;t affect existing index
files. By default index file version 2 or 3 is used. See
<a href="git-update-index.html">git-update-index(1)</a> for more information.
</p>
@@ -2962,7 +2966,7 @@ double-quotes and respecting backslash escapes. E.g., the value
When run in a directory that does not have ".git" repository
directory, Git tries to find such a directory in the parent
directories to find the top of the working tree, but by default it
- does not cross filesystem boundaries. This environment variable
+ does not cross filesystem boundaries. This Boolean environment variable
can be set to true to tell Git not to stop at filesystem
boundaries. Like <code>GIT_CEILING_DIRECTORIES</code>, this will not affect
an explicit repository directory set via <code>GIT_DIR</code> or on the
@@ -3243,6 +3247,16 @@ for further details.</p></div>
</p>
</dd>
<dt class="hdlist1">
+<code>GIT_SSL_NO_VERIFY</code>
+</dt>
+<dd>
+<p>
+ Setting and exporting this environment variable to any value
+ tells Git not to verify the SSL certificate when fetching or
+ pushing over HTTPS.
+</p>
+</dd>
+<dt class="hdlist1">
<code>GIT_ASKPASS</code>
</dt>
<dd>
@@ -3259,7 +3273,7 @@ for further details.</p></div>
</dt>
<dd>
<p>
- If this environment variable is set to <code>0</code>, git will not prompt
+ If this Boolean environment variable is set to false, git will not prompt
on the terminal (e.g., when asking for HTTP authentication).
</p>
</dd>
@@ -3286,10 +3300,10 @@ for further details.</p></div>
<dd>
<p>
Whether to skip reading settings from the system-wide
- <code>$(prefix)/etc/gitconfig</code> file. This environment variable can
+ <code>$(prefix)/etc/gitconfig</code> file. This Boolean environment variable can
be used along with <code>$HOME</code> and <code>$XDG_CONFIG_HOME</code> to create a
predictable environment for a picky script, or you can set it
- temporarily to avoid using a buggy <code>/etc/gitconfig</code> file while
+ to true to temporarily avoid using a buggy <code>/etc/gitconfig</code> file while
waiting for someone with sufficient permissions to fix it.
</p>
</dd>
@@ -3298,6 +3312,7 @@ for further details.</p></div>
</dt>
<dd>
<p>
+
If this environment variable is set to "1", then commands such
as <em>git blame</em> (in incremental mode), <em>git rev-list</em>, <em>git log</em>,
<em>git check-attr</em> and <em>git check-ignore</em> will
@@ -3501,7 +3516,7 @@ for full details.</p></div>
<p>
By default, when tracing is activated, Git redacts the values of
cookies, the "Authorization:" header, the "Proxy-Authorization:"
- header and packfile URIs. Set this variable to <code>0</code> to prevent this
+ header and packfile URIs. Set this Boolean environment variable to false to prevent this
redaction.
</p>
</dd>
@@ -3510,7 +3525,7 @@ for full details.</p></div>
</dt>
<dd>
<p>
- Setting this variable to <code>1</code> will cause Git to treat all
+ Setting this Boolean environment variable to true will cause Git to treat all
pathspecs literally, rather than as glob patterns. For example,
running <code>GIT_LITERAL_PATHSPECS=1 git log -- '*.c'</code> will search
for commits that touch the path <code>*.c</code>, not any paths that the
@@ -3524,7 +3539,7 @@ for full details.</p></div>
</dt>
<dd>
<p>
- Setting this variable to <code>1</code> will cause Git to treat all
+ Setting this Boolean environment variable to true will cause Git to treat all
pathspecs as glob patterns (aka "glob" magic).
</p>
</dd>
@@ -3533,7 +3548,7 @@ for full details.</p></div>
</dt>
<dd>
<p>
- Setting this variable to <code>1</code> will cause Git to treat all
+ Setting this Boolean environment variable to true will cause Git to treat all
pathspecs as literal (aka "literal" magic).
</p>
</dd>
@@ -3542,7 +3557,7 @@ for full details.</p></div>
</dt>
<dd>
<p>
- Setting this variable to <code>1</code> will cause Git to treat all
+ Setting this Boolean environment variable to true will cause Git to treat all
pathspecs as case-insensitive.
</p>
</dd>
@@ -3566,7 +3581,7 @@ for full details.</p></div>
</dt>
<dd>
<p>
- If set to <code>0</code>, ignore broken or badly named refs when iterating
+ If this Boolean environment variable is set to false, ignore broken or badly named refs when iterating
over lists of refs. Normally Git will try to include any such
refs, which may cause some operations to fail. This is usually
preferable, as potentially destructive operations (e.g.,
@@ -3595,7 +3610,7 @@ for full details.</p></div>
</dt>
<dd>
<p>
- Set to 0 to prevent protocols used by fetch/push/clone which are
+ Set this Boolean environment variable to false to prevent protocols used by fetch/push/clone which are
configured to the <code>user</code> state. This is useful to restrict recursive
submodule initialization from an untrusted repository or for programs
which feed potentially-untrusted URLS to git commands. See
@@ -3631,7 +3646,7 @@ be in the future).</p></div>
</dt>
<dd>
<p>
- If set to <code>0</code>, Git will complete any requested operation without
+ If this Boolean environment variable is set to false, Git will complete any requested operation without
performing any optional sub-operations that require taking a lock.
For example, this will prevent <code>git status</code> from refreshing the
index as a side effect. This is useful for processes running in
@@ -3792,7 +3807,7 @@ the Git Security mailing list &lt;<a href="mailto:git-security@googlegroups.com"
<div id="footer">
<div id="footer-text">
Last updated
- 2022-09-21 15:44:34 PDT
+ 2022-10-10 14:40:17 PDT
</div>
</div>
</body>