Skip to content

Commit

Permalink
Documentation: git-init: flesh out example
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Arver authored and Junio C Hamano committed Aug 8, 2014
1 parent 8994fbf commit 64de2e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Documentation/git-init.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down

0 comments on commit 64de2e1

Please sign in to comment.