summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorLiu Yubao <yubao.liu@gmail.com>2008-04-29 04:09:20 +0800
committerJunio C Hamano <gitster@pobox.com>2008-04-29 23:11:57 -0700
commit302cc11a32732a0a3f0a7875b1857098e1964929 (patch)
treec8068dba529db9587dcd64f96e87e8dffe01e99d /Documentation/git.txt
parent0104ca09e3abf48ab26fd0599c4b686fcff60ffc (diff)
downloadgit-302cc11a32732a0a3f0a7875b1857098e1964929.tar.gz
Documentation on --git-dir and --work-tree
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index a070e078e7..6f445b1e3b 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -143,7 +143,8 @@ help ...'.
--git-dir=<path>::
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>::
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).
This can also be controlled by setting the GIT_WORK_TREE
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::
Treat the repository as a bare repository. If GIT_DIR