diff options
author | Nanako Shiraishi <nanako3@lavabit.com> | 2009-07-25 06:59:28 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-25 02:17:54 -0700 |
commit | 53d48885931614a43e414e1272a7f126f8d0c901 (patch) | |
tree | ea3cc2803cac3034168ade392df83e71643daea4 /Documentation/git-init.txt | |
parent | 0ad8ff2cd185e84fd49dd961370411e379681f10 (diff) | |
download | git-53d48885931614a43e414e1272a7f126f8d0c901.tar.gz |
git init: optionally allow a directory argument
When starting a new repository, I see my students often say
% git init newrepo
and curse git. They could say
% mkdir newrepo; cd newrepo; git init
but allowing it as an obvious short-cut may be nicer.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-init.txt')
-rw-r--r-- | Documentation/git-init.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt index 7151d12f34..f081b24d9d 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 SYNOPSIS -------- -'git init' [-q | --quiet] [--bare] [--template=<template_directory>] [--shared[=<permissions>]] +'git init' [-q | --quiet] [--bare] [--template=<template_directory>] [--shared[=<permissions>]] [directory] OPTIONS @@ -74,6 +74,9 @@ By default, the configuration flag receive.denyNonFastForwards is enabled in shared repositories, so that you cannot force a non fast-forwarding push into it. +If you name a (possibly non-existent) directory at the end of the command +line, the command is run inside the directory (possibly after creating it). + -- |