Skip to content

Commit

Permalink
git.txt: add missing info about --git-dir command-line option
Browse files Browse the repository at this point in the history
Unlike other environment variables (e.g. GIT_WORK_TREE,	GIT_NAMESPACE),
the Documentation/git.txt file did not mention that the GIT_DIR
environment variable can also be set using the --git-dir command line
option.

Signed-off-by: Manlio Perillo <manlio.perillo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Manlio Perillo authored and Junio C Hamano committed Dec 13, 2012
1 parent 50b03b0 commit 75940a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ git so take care if using Cogito etc.
If the 'GIT_DIR' environment variable is set then it
specifies a path to use instead of the default `.git`
for the base of the repository.
The '--git-dir' command-line option also sets this value.

'GIT_WORK_TREE'::
Set the path to the working tree. The value will not be
Expand Down

0 comments on commit 75940a0

Please sign in to comment.