You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/getting-a-repository.asc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ and type:
36
36
$ git init
37
37
----
38
38
39
-
This creates a new subdirectory named `.git` that contains all of your necessary repository files – a Git repository skeleton.
39
+
This creates a new subdirectory named `.git` that contains all of your necessary repository files -- a Git repository skeleton.
40
40
At this point, nothing in your project is tracked yet.
41
41
(See <<_git_internals>> for more information about exactly what files are contained in the `.git` directory you just created.)(((git commands, init)))
42
42
@@ -56,11 +56,11 @@ At this point, you have a Git repository with tracked files and an initial commi
56
56
[[_git_cloning]]
57
57
==== Cloning an Existing Repository
58
58
59
-
If you want to get a copy of an existing Git repository – for example, a project you'd like to contribute to – the command you need is `git clone`.
59
+
If you want to get a copy of an existing Git repository -- for example, a project you'd like to contribute to -- the command you need is `git clone`.
60
60
If you're familiar with other VCS systems such as Subversion, you'll notice that the command is "clone" and not "checkout".
61
-
This is an important distinction – instead of getting just a working copy, Git receives a full copy of nearly all data that the server has.
61
+
This is an important distinction -- instead of getting just a working copy, Git receives a full copy of nearly all data that the server has.
62
62
Every version of every file for the history of the project is pulled down by default when you run `git clone`.
63
-
In fact, if your server disk gets corrupted, you can often use nearly any of the clones on any client to set the server back to the state it was in when it was cloned (you may lose some server-side hooks and such, but all the versioned data would be there – see <<_git_on_the_server>> for more details).
63
+
In fact, if your server disk gets corrupted, you can often use nearly any of the clones on any client to set the server back to the state it was in when it was cloned (you may lose some server-side hooks and such, but all the versioned data would be there -- see <<_git_on_the_server>> for more details).
64
64
65
65
You clone a repository with `git clone <url>`.(((git commands, clone)))
66
66
For example, if you want to clone the Git linkable library called `libgit2`, you can do so like this:
0 commit comments