From: Linus Arver Date: Fri, 8 Aug 2014 17:29:20 +0000 (-0700) Subject: Documentation: git-init: flesh out example X-Git-Tag: v2.2.0-rc0~164^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64de2e10a0acdcf9558317cca77ed3c5622d7a49;p=thirdparty%2Fgit.git Documentation: git-init: flesh out example Add a third step `git commit` after adding files for the first time. Signed-off-by: Linus Arver Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt index 9f2c7d8484..369f889bb4 100644 --- a/Documentation/git-init.txt +++ b/Documentation/git-init.txt @@ -141,10 +141,12 @@ Start a new Git repository for an existing code base:: $ cd /path/to/my/codebase $ git init <1> $ git add . <2> +$ git commit <3> ---------------- + <1> Create a /path/to/my/codebase/.git directory. <2> Add all existing files to the index. +<3> Record the pristine state as the first commit in the history. GIT ---