]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: git-init: flesh out example
authorLinus Arver <linusarver@gmail.com>
Fri, 8 Aug 2014 17:29:20 +0000 (10:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2014 20:17:42 +0000 (13:17 -0700)
Add a third step `git commit` after adding files for the first time.

Signed-off-by: Linus Arver <linusarver@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-init.txt

index 9f2c7d84848949425fed5aeba8c9e5b587e384fa..369f889bb4d5f9f5066552cef74525649477ca9c 100644 (file)
@@ -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
 ---