path: root/Documentation/git-init.txt
diff options
authorLuciano Rocha <>2008-05-28 18:53:57 (GMT)
committerJunio C Hamano <>2008-05-29 01:31:19 (GMT)
commit74d3b23fe3771c769ccd5c97f6a46682b4061577 (patch)
tree3c43256733366887751ad07cbc8ea40a2d53e546 /Documentation/git-init.txt
parentd2b3691b61d516a0ad2bf700a2a5d9113ceff0b1 (diff)
git-init: accept --bare option
It is unfortunate that "git init --bare" does not work and the only reason why "init" did not learn its own "--bare" option is because "git --bare init" already does the job (and as an option to the git 'potty', it is more generic solution). This teaches "git init" its own "--bare" option, so that both "git --bare init" and "git init --bare" works mostly the same way. [jc: rewrote the log message and added test] Signed-off-by: Luciano Rocha <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-init.txt')
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index b17ae84..b48c312 100644
--- a/Documentation/git-init.txt
+++ b/Documentation/git-init.txt
@@ -8,7 +8,7 @@ git-init - Create an empty git repository or reinitialize an existing one
-'git-init' [-q | --quiet] [--template=<template_directory>] [--shared[=<permissions>]]
+'git-init' [-q | --quiet] [--bare] [--template=<template_directory>] [--shared[=<permissions>]]
@@ -20,6 +20,11 @@ OPTIONS
Only print error and warning messages, all other output will be suppressed.
+Create a bare repository. If GIT_DIR environment is not set, it is set to the
+current working directory.
Provide the directory from which templates will be used. The default template