Git Environment Variables: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Git Configuration =Variables= ==GIT_AUTHOR_NAME== ==GIT_AUTHOR_EMAIL==")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* https://git-scm.com/book/gr/v2/Git-Internals-Environment-Variables
=Internal=
=Internal=


Line 5: Line 9:
=Variables=
=Variables=


==GIT_AUTHOR_NAME==
==Generic==
 
===GIT_AUTHOR_NAME===
 
If set, it overrides [[Git_config#Configure_the_Commit_Author|git config]] setting.
 
===GIT_EDITOR===
 
Precedences: GIT_EDITOR, 'core.editor' git configuration option, VISUAL, EDITOR and finally the "vi" command.
 
Default is "vi"
 
===GIT_DIR===
 
The name of the git repository directory. Default .git.
 
Returned by:
[[Git_rev-parse#--git-dir|git rev-parse --git-dir]]
 
===GIT_AUTHOR_EMAIL===
 
If set, it overrides [[Git_config#Configure_the_Commit_Author|git config]] setting.
 
==Networking==
 
===GIT_SSL_NO_VERIFY===
 
GIT_SSL_NO_VERIFY=true


==GIT_AUTHOR_EMAIL==
Tells Git not to verify SSL certificates, which is necessary if the repository uses a self-signed certificate. If present, overrides [[Git_config#http.sslVerify|git config http.sslVerify]].

Latest revision as of 04:39, 16 July 2020

External

Internal

Variables

Generic

GIT_AUTHOR_NAME

If set, it overrides git config setting.

GIT_EDITOR

Precedences: GIT_EDITOR, 'core.editor' git configuration option, VISUAL, EDITOR and finally the "vi" command.

Default is "vi"

GIT_DIR

The name of the git repository directory. Default .git.

Returned by:

git rev-parse --git-dir

GIT_AUTHOR_EMAIL

If set, it overrides git config setting.

Networking

GIT_SSL_NO_VERIFY

GIT_SSL_NO_VERIFY=true

Tells Git not to verify SSL certificates, which is necessary if the repository uses a self-signed certificate. If present, overrides git config http.sslVerify.