1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-INIT-DB" 1 "" "" ""
22 git-init-db \- Creates an empty git repository
26 git\-init\-db [\-\-template=<template_directory>]
31 \-\-template=<template_directory>
32 Provide the directory in from which templates will be used\&.
37 This simply creates an empty git repository \- basically a \&.git directory and \&.git/object/??/, \&.git/refs/heads and \&.git/refs/tags directories, and links \&.git/HEAD symbolically to \&.git/refs/heads/master\&.
40 If the $GIT_DIR environment variable is set then it specifies a path to use instead of \&./\&.git for the base of the repository\&.
43 If the object storage directory is specified via the $GIT_OBJECT_DIRECTORY environment variable then the sha1 directories are created underneath \- otherwise the default $GIT_DIR/objects directory is used\&.
46 git\-init\-db won't hurt an existing repository\&.
51 Start a new git repository for an existing code base
54 $ cd /path/to/my/codebase
58 prepare /path/to/my/codebase/\&.git directory
59 add all existing file to the index
63 Written by Linus Torvalds <torvalds@osdl\&.org>
68 Documentation by David Greaves, Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
73 Part of the \fBgit\fR(7) suite