git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8994fbf
)
Documentation: git-init: flesh out example
author
Linus Arver
<redacted>
Fri, 8 Aug 2014 17:29:20 +0000
(10:29 -0700)
committer
Junio C Hamano
<redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-init.txt
patch
|
blob
|
history
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>
+$ 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
---
git clone https://git.99rst.org/PROJECT