Skip to content

Commit 9e1e1c4

Browse files
committed
finished up init/clone stuff
1 parent 9a6ff92 commit 9e1e1c4

File tree

3 files changed

+41
-11
lines changed

3 files changed

+41
-11
lines changed

_layouts/reference.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ <h3><a href="/basic">Basic Snapshotting</a></h3>
5757
<div class="block">
5858
<h3><a href="/branching">Branching and Merging</a></h3>
5959
<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>
6565
</ul>
6666
</div>
6767

creating/index.html

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ <h2>Getting and Creating Projects</h2>
2323
<div class="box">
2424
<h2>
2525
<span class="docs">
26-
<a href="#">docs</a> &nbsp;
27-
<a href="#">book</a>
26+
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html">docs</a> &nbsp;
27+
<a target="new" href="http://progit.org/book/ch2-1.html#initializing_a_repository_in_an_existing_directory">book</a>
2828
</span>
2929
<a name="init">git init</a>
3030
<span class="desc">initializes a directory as a Git repository</span>
@@ -63,14 +63,19 @@ <h2>
6363
Congratulations, you now have a skeleton Git repository and can start
6464
snapshotting your project.
6565

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+
6671
</div>
6772
</div>
6873

6974
<div class="box">
7075
<h2>
7176
<span class="docs">
72-
<a href="#">docs</a> &nbsp;
73-
<a href="#">book</a>
77+
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-clone.html">docs</a> &nbsp;
78+
<a target="new" href="http://progit.org/book/ch2-1.html#cloning_an_existing_repository">book</a>
7479
</span>
7580
<a name="clone">git clone</a>
7681
<span class="desc">copy a git repository so you can add to it</span>
@@ -86,7 +91,18 @@ <h2>
8691
the URL of the project you want to copy.
8792
</p>
8893

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>
90106

91107
<p>
92108
This will copy the entire history of that project so you have it locally
@@ -96,7 +112,15 @@ <h2>
96112
where all the project data is.
97113
</p>
98114

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>
100124

101125
<p>
102126
By default, Git will create a directory that is the same name as the
@@ -105,6 +129,11 @@ <h2>
105129
end of the command, after the URL.
106130
</p>
107131

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+
108137
</div>
109138
</div>
110139

css/layout.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pre b { color: #111; }
5757
.green { color: #383; }
5858
.umber { color: #8A3324; }
5959
.lblue { color: #55a; }
60+
.blue { color: #447; }
6061
.hl { background: #eea; }
6162

6263
.box h4 {

0 commit comments

Comments
 (0)