Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Documentation: git-init: flesh out example
author
Linus Arver
<linusarver@gmail.com>
Fri, 8 Aug 2014 17:29:20 +0000
(10:29 -0700)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8994fbf
)
diff --git
a/Documentation/git-init.txt
b/Documentation/git-init.txt
index 9f2c7d84848949425fed5aeba8c9e5b587e384fa..369f889bb4d5f9f5066552cef74525649477ca9c 100644
(file)
--- 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>
$ 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.
----------------
+
<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
---
GIT
---