Skip to content

Commit 64de2e1

Browse files
listxgitster
authored andcommitted
Documentation: git-init: flesh out example
Add a third step `git commit` after adding files for the first time. Signed-off-by: Linus Arver <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8994fbf commit 64de2e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/git-init.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,12 @@ Start a new Git repository for an existing code base::
141141
$ cd /path/to/my/codebase
142142
$ git init <1>
143143
$ git add . <2>
144+
$ git commit <3>
144145
----------------
145146
+
146147
<1> Create a /path/to/my/codebase/.git directory.
147148
<2> Add all existing files to the index.
149+
<3> Record the pristine state as the first commit in the history.
148150

149151
GIT
150152
---

0 commit comments

Comments
 (0)