Skip to content

Commit 75940a0

Browse files
perillogitster
authored andcommitted
git.txt: add missing info about --git-dir command-line option
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50b03b0 commit 75940a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Documentation/git.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ git so take care if using Cogito etc.
650650
If the 'GIT_DIR' environment variable is set then it
651651
specifies a path to use instead of the default `.git`
652652
for the base of the repository.
653+
The '--git-dir' command-line option also sets this value.
653654

654655
'GIT_WORK_TREE'::
655656
Set the path to the working tree. The value will not be

0 commit comments

Comments
 (0)