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 @@
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
+ 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.
[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.