Module generic

Module generic 

Source

Constants§

ATTR_SOURCE
BARE
EXEC_PATH
GIT_DIR
GLOB_PATHSPECS
HELP
HTML_PATH
ICASE_PATHSPECS
INFO_PATH
MAN_PATH
NAMESPACE
NOGLOB_PATHSPECS
NO_ADVICE
NO_LAZY_FETCH
NO_OPTIONAL_LOCKS
NO_PAGER
NO_REPLACE_OBJECTS
PAGINATE
VERSION
WORKING_PATH
WORK_TREE

Functions§

attr_source
Read gitattributes from instead of the worktree. See gitattributes[5]. This is equivalent to setting the GIT_ATTR_SOURCE environment variable. –attr-source=
bare
Treat the repository as a bare repository. If GIT_DIR environment is not set, it is set to the current working directory. –bare
config
Pass a configuration parameter to the command. The value given will override values from configuration files. The is expected in the same format as listed by git config (subkeys separated by dots). -c =
config_env
Like -c =, give configuration variable a value, where is the name of an environment variable from which to retrieve the value. Unlike -c there is no shortcut for directly setting the value to an empty string, instead the environment variable itself must be set to the empty string. It is an error if the does not exist in the environment. may not contain an equals sign to avoid ambiguity with containing one. –config-env =
exec_path
Path to wherever your core Git programs are installed. This can also be controlled by setting the GIT_EXEC_PATH environment variable. If no path is given, git will print the current setting and then exit. –exec-path[=]
git_dir
Set the path to the repository (“.git” directory). This can also be controlled by setting the GIT_DIR environment variable. It can be an absolute path or relative path to current working directory. –git-dir=
glob_pathspecs
Add “glob” magic to all pathspec. This is equivalent to setting the GIT_GLOB_PATHSPECS environment variable to 1. –glob-pathspecs
help
Prints the synopsis and a list of the most commonly used commands. –help, -h
html_path
Print the path, without trailing slash, where Git’s HTML documentation is installed and exit –html-path
icase_pathspecs
Add “icase” magic to all pathspec. This is equivalent to setting the GIT_ICASE_PATHSPECS environment variable to 1. –icase-pathspecs
info_path
Print the path where the Info files documenting this version of Git are installed and exit –info-path
man_path
Print the manpath (see man(1)) for the man pages for this version of Git and exit. –man-path
namespace
Set the Git namespace. See gitnamespaces[7] for more details. Equivalent to setting the GIT_NAMESPACE environment variable. –namespace=
no_advice
Disable all advice hints from being printed –no-advice
no_lazy_fetch
Do not fetch missing objects from the promisor remote on demand. Useful together with git cat-file -e to see if the object is locally available. This is equivalent to setting the GIT_NO_LAZY_FETCH environment variable to 1 –no-lazy-fetch
no_optional_locks
Do not perform optional operations that require locks. This is equivalent to setting the GIT_OPTIONAL_LOCKS to 0. –no-optional-locks
no_pager
Do not pipe Git output into a pager. –no-pager, -P
no_replace_objects
Do not use replacement refs to replace Git objects. This is equivalent to exporting the GIT_NO_REPLACE_OBJECTS environment variable with any value. –no-replace-objects
noglob_pathspecs
Add “literal” magic to all pathspec. This is equivalent to setting the GIT_NOGLOB_PATHSPECS environment variable to 1. –noglob-pathspecs
paginate
Pipe all output into less (or if set, $PAGER) if standard output is a terminal. This overrides the pager. configuration options –paginate, -p
version
Prints the Git suite version that the git program came from. –version, -v
work_tree
Set the path to the working tree. It can be an absolute path or a path relative to the current working directory. This can also be controlled by setting the GIT_WORK_TREE environment variable and the core.worktree configuration variable –work-tree=
working_path
Run as if git was started in instead of the current working directory. -C