Git Environment Variables

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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.