$ mkdir git-tutorial $ cd git-tutorial -$ git-init-db+$ git-init
From: Junio C Hamano
For our first example, we're going to start a totally new repository from scratch, with no pre-existing files, and we'll call it git-tutorial. To start up, create a subdirectory for it, change into that -subdirectory, and initialize the git infrastructure with git-init-db:
+subdirectory, and initialize the git infrastructure with git-init:$ mkdir git-tutorial $ cd git-tutorial -$ git-init-db+$ git-init
to which git will reply
$ mkdir my-git.git
Then, make that directory into a git repository by running -git init-db, but this time, since its name is not the usual +git init, but this time, since its name is not the usual .git, we do things slightly differently:
$ GIT_DIR=my-git.git git-init-db+
$ GIT_DIR=my-git.git git-init
Make sure this directory is available for others you want your changes to be pulled by via the transport of your choice. Also @@ -1761,7 +1761,7 @@ Prepare a public repository accessible to others.
If other people are pulling from your repository over dumb transport protocols (HTTP), you need to keep this repository -dumb transport friendly. After git init-db, +dumb transport friendly. After git init, $GIT_DIR/hooks/post-update copied from the standard templates would contain a call to git-update-server-info but the post-update hook itself is disabled by default — enable it @@ -2004,7 +2004,7 @@ to follow, not easier.