Skip to content

Commit 5a14a76

Browse files
committed
Tweak "Getting a Git Repository" section for grammar/wording.
Some minor changes to wording and grammar, to get rid of wording I've always found to be a bit awkward or unclear.
1 parent e91bc7e commit 5a14a76

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

book/02-git-basics/sections/getting-a-repository.asc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
[[_getting_a_repo]]
22
=== Getting a Git Repository
33

4-
You can get a Git project using two main approaches.
5-
The first takes an existing project or directory and imports it into Git.
6-
The second clones an existing Git repository from another server.
4+
You typically obtain a Git repository in one of two ways:
5+
6+
1. You can take a local directory that is currently not under version control, and turn it into a Git repository, or
7+
2. You can _clone_ an existing Git repository from elsewhere.
8+
9+
In either case, you end up with a Git repository on your local machine, ready for work.
710

811
==== Initializing a Repository in an Existing Directory
912

10-
If you have a project that is currently not under version control and you want to start controlling it with Git, you first need to go to that project's directory. If you've never done this, it looks a little different depending on which system you're running:
13+
If you have a project directory that is currently not under version control and you want to start controlling it with Git, you first need to go to that project's directory. If you've never done this, it looks a little different depending on which system you're running:
1114

1215
for Linux:
1316
[source,console]
@@ -67,7 +70,8 @@ $ git clone https://github.com/libgit2/libgit2
6770
----
6871

6972
That creates a directory named `libgit2`, initializes a `.git` directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version.
70-
If you go into the new `libgit2` directory, you'll see the project files in there, ready to be worked on or used.
73+
If you go into the new `libgit2` directory that was just created, you'll see the project files in there, ready to be worked on or used.
74+
7175
If you want to clone the repository into a directory named something other than `libgit2`, you can specify that as the next command-line option:
7276

7377
[source,console]

0 commit comments

Comments
 (0)