diff --git a/_layouts/reference.html b/_layouts/reference.html index f6422f6..0c91d1d 100755 --- a/_layouts/reference.html +++ b/_layouts/reference.html @@ -57,11 +57,11 @@

Branching and Merging

diff --git a/creating/index.html b/creating/index.html index 9b1e543..3e427a2 100644 --- a/creating/index.html +++ b/creating/index.html @@ -23,8 +23,8 @@ layout: reference

- docs   - book + docs   + book git init initializes a directory as a Git repository @@ -63,14 +63,19 @@ $ ls -a Congratulations, you now have a skeleton Git repository and can start snapshotting your project. +

+ In a nutshell, you use git init to make an + existing directory of content into a new Git repository. You can do this + in any directory at any time, completely locally.

+

- docs   - book + docs   + book git clone copy a git repository so you can add to it @@ -86,7 +91,18 @@ $ ls -a the URL of the project you want to copy.

-
 [example] 
+
+$ git clone git://github.com/schacon/simplegit.git
+Initialized empty Git repository in /private/tmp/simplegit/.git/
+remote: Counting objects: 100, done.
+remote: Compressing objects: 100% (86/86), done.
+remote: Total 100 (delta 35), reused 0 (delta 0)
+Receiving objects: 100% (100/100), 9.51 KiB, done.
+Resolving deltas: 100% (35/35), done.
+$ cd simplegit/
+$ ls
+README   Rakefile lib
+

This will copy the entire history of that project so you have it locally @@ -96,7 +112,15 @@ $ ls -a where all the project data is.

-
 [example] 
+
+$ ls -a
+.        ..       .git     README   Rakefile lib
+$ cd .git
+$ ls
+HEAD        description info        packed-refs
+branches    hooks       logs        refs
+config      index       objects
+

By default, Git will create a directory that is the same name as the @@ -105,6 +129,11 @@ $ ls -a end of the command, after the URL.

+

+ In a nutshell, you use git clone to get a + local copy of a Git repository so you can look at it or start modifying + it.

+

diff --git a/css/layout.css b/css/layout.css index 87d95d0..4e0f41a 100755 --- a/css/layout.css +++ b/css/layout.css @@ -57,6 +57,7 @@ pre b { color: #111; } .green { color: #383; } .umber { color: #8A3324; } .lblue { color: #55a; } +.blue { color: #447; } .hl { background: #eea; } .box h4 {