finished up init/clone stuff
Scott Chacon committed
Jun 4, 2010 at 10:31 UTC
9e1e1c42acc93848d0c857596dc9a721ffef6127
3 files changed
+41
-11
_layouts/reference.html
+5
-5
@@ -57,11 +57,11 @@
57
<div class="block">
58
<h3><a href="/branching">Branching and Merging</a></h3>
59
<ul>
60
- <li><a href="/branching/branch.html">branch</a></li>
61
- <li><a href="/branching/merge.html">merge</a></li>
62
- <li><a href="/branching/checkout.html">checkout</a></li>
63
- <li><a href="/branching/log.html">log</a></li>
64
- <li><a href="/branching/reset.html">reset</a></li>
60
+ <li><a href="/branching/#branch">branch</a></li>
61
+ <li><a href="/branching/#merge">merge</a></li>
62
+ <li><a href="/branching/#checkout">checkout</a></li>
63
+ <li><a href="/branching/#log">log</a></li>
64
+ <li><a href="/branching/#reset">reset</a></li>
65
</ul>
66
</div>
67
creating/index.html
+35
-6
@@ -23,8 +23,8 @@ layout: reference
23
<div class="box">
24
<h2>
25
<span class="docs">
26
- <a href="#">docs</a>
27
- <a href="#">book</a>
26
+ <a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html">docs</a>
27
+ <a target="new" href="http://progit.org/book/ch2-1.html#initializing_a_repository_in_an_existing_directory">book</a>
28
</span>
29
<a name="init">git init</a>
30
<span class="desc">initializes a directory as a Git repository</span>
@@ -63,14 +63,19 @@ $ ls -a
63
Congratulations, you now have a skeleton Git repository and can start
64
snapshotting your project.
65
66
+ <p class="nutshell">
67
+ <strong>In a nutshell</strong>, you use <code>git init</code> to make an
68
+ existing directory of content into a new Git repository. You can do this
69
+ in any directory at any time, completely locally.</p>
70
+
71
</div>
72
</div>
73
74
<div class="box">
75
<h2>
76
<span class="docs">
72
- <a href="#">docs</a>
73
- <a href="#">book</a>
77
+ <a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-clone.html">docs</a>
78
+ <a target="new" href="http://progit.org/book/ch2-1.html#cloning_an_existing_repository">book</a>
79
</span>
80
<a name="clone">git clone</a>
81
<span class="desc">copy a git repository so you can add to it</span>
@@ -86,7 +91,18 @@ $ ls -a
91
the URL of the project you want to copy.
92
</p>
93
89
-<pre> [example] </pre>
94
+<pre>
95
+<b>$ git clone git://github.com/schacon/simplegit.git</b>
96
+Initialized empty Git repository in /private/tmp/simplegit/.git/
97
+remote: Counting objects: 100, done.
98
+remote: Compressing objects: 100% (86/86), done.
99
+remote: Total 100 (delta 35), reused 0 (delta 0)
100
+Receiving objects: 100% (100/100), 9.51 KiB, done.
101
+Resolving deltas: 100% (35/35), done.
102
+<b>$ cd simplegit/</b>
103
+<b>$ ls</b>
104
+README Rakefile <span class="blue">lib</span>
105
+</pre>
106
107
<p>
108
This will copy the entire history of that project so you have it locally
@@ -96,7 +112,15 @@ $ ls -a
112
where all the project data is.
113
</p>
114
99
-<pre> [example] </pre>
115
+<pre>
116
+<b>$ ls -a</b>
117
+. .. <span class="blue">.git</span> README Rakefile <span class="blue">lib</span>
118
+<b>$ cd .git</b>
119
+<b>$ ls</b>
120
+HEAD description <span class="blue">info</span> packed-refs
121
+<span class="blue">branches hooks logs refs</span>
122
+config index <span class="blue">objects</span>
123
+</pre>
124
125
<p>
126
By default, Git will create a directory that is the same name as the
@@ -105,6 +129,11 @@ $ ls -a
129
end of the command, after the URL.
130
</p>
131
132
+ <p class="nutshell">
133
+ <strong>In a nutshell</strong>, you use <code>git clone</code> to get a
134
+ local copy of a Git repository so you can look at it or start modifying
135
+ it.</p>
136
+
137
</div>
138
</div>
139
css/layout.css
+1
@@ -57,6 +57,7 @@ pre b { color: #111; }
57
.green { color: #383; }
58
.umber { color: #8A3324; }
59
.lblue { color: #55a; }
60
+.blue { color: #447; }
61
.hl { background: #eea; }
62
63
.box h4 {