diff options
author | Linus Arver <linusarver@gmail.com> | 2014-08-08 10:29:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-08-08 13:17:42 -0700 |
commit | 64de2e10a0acdcf9558317cca77ed3c5622d7a49 (patch) | |
tree | f00f42a97a24a9036438585ed4108377abced51c /Documentation/git-init.txt | |
parent | 8994fbf3ec97d408e2bceefad0328c5951a3de14 (diff) | |
download | git-64de2e10a0acdcf9558317cca77ed3c5622d7a49.tar.gz |
Documentation: git-init: flesh out examplela/init-doc
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>
Diffstat (limited to 'Documentation/git-init.txt')
-rw-r--r-- | Documentation/git-init.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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 --- |