Documentation on --git-dir and --work-tree
This commit is contained in:
parent
0104ca09e3
commit
302cc11a32
@ -234,7 +234,13 @@ core.worktree::
|
|||||||
used in combination with repositories found automatically in
|
used in combination with repositories found automatically in
|
||||||
a .git directory (i.e. $GIT_DIR is not set).
|
a .git directory (i.e. $GIT_DIR is not set).
|
||||||
This can be overridden by the GIT_WORK_TREE environment
|
This can be overridden by the GIT_WORK_TREE environment
|
||||||
variable and the '--work-tree' command line option.
|
variable and the '--work-tree' command line option. It can be
|
||||||
|
a absolute path or relative path to the directory specified by
|
||||||
|
--git-dir or GIT_DIR.
|
||||||
|
Note: If --git-dir or GIT_DIR are specified but none of
|
||||||
|
--work-tree, GIT_WORK_TREE and core.worktree is specified,
|
||||||
|
the current working directory is regarded as the top directory
|
||||||
|
of your working tree.
|
||||||
|
|
||||||
core.logAllRefUpdates::
|
core.logAllRefUpdates::
|
||||||
Enable the reflog. Updates to a ref <ref> is logged to the file
|
Enable the reflog. Updates to a ref <ref> is logged to the file
|
||||||
|
@ -143,7 +143,8 @@ help ...'.
|
|||||||
|
|
||||||
--git-dir=<path>::
|
--git-dir=<path>::
|
||||||
Set the path to the repository. This can also be controlled by
|
Set the path to the repository. This can also be controlled by
|
||||||
setting the GIT_DIR environment variable.
|
setting the GIT_DIR environment variable. It can be an absolute
|
||||||
|
path or relative path to current working directory.
|
||||||
|
|
||||||
--work-tree=<path>::
|
--work-tree=<path>::
|
||||||
Set the path to the working tree. The value will not be
|
Set the path to the working tree. The value will not be
|
||||||
@ -151,7 +152,12 @@ help ...'.
|
|||||||
a .git directory (i.e. $GIT_DIR is not set).
|
a .git directory (i.e. $GIT_DIR is not set).
|
||||||
This can also be controlled by setting the GIT_WORK_TREE
|
This can also be controlled by setting the GIT_WORK_TREE
|
||||||
environment variable and the core.worktree configuration
|
environment variable and the core.worktree configuration
|
||||||
variable.
|
variable. It can be an absolute path or relative path to
|
||||||
|
the directory specified by --git-dir or GIT_DIR.
|
||||||
|
Note: If --git-dir or GIT_DIR are specified but none of
|
||||||
|
--work-tree, GIT_WORK_TREE and core.worktree is specified,
|
||||||
|
the current working directory is regarded as the top directory
|
||||||
|
of your working tree.
|
||||||
|
|
||||||
--bare::
|
--bare::
|
||||||
Treat the repository as a bare repository. If GIT_DIR
|
Treat the repository as a bare repository. If GIT_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user