Skip to content

Commit a33d55f

Browse files
committed
Merge pull request #1 from progit/master
Update fork
2 parents 94222b6 + 9f1ebd9 commit a33d55f

File tree

4 files changed

+31
-20
lines changed

4 files changed

+31
-20
lines changed

book/01-introduction/sections/installing.asc

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ If you want to install Git on Linux via a binary installer, you can generally do
1818
If you're on Fedora for example, you can use yum:
1919

2020
[source,console]
21-
$ sudo yum install git
21+
----
22+
$ sudo yum install git
23+
----
2224

2325
If you're on a Debian-based distribution like Ubuntu, try apt-get:
2426

2527
[source,console]
26-
$ sudo apt-get install git
28+
----
29+
$ sudo apt-get install git
30+
----
2731

2832
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
2933

@@ -58,7 +62,6 @@ It also works well with Powershell, and sets up solid credential caching and san
5862
We'll learn more about those things a little later, but suffice it to say they're things you want.
5963
You can download this from the GitHub for Windows website, at http://windows.github.com[].
6064

61-
6265
==== Installing from Source
6366

6467
Some people may instead find it useful to install Git from source, because you'll get the most recent version.
@@ -68,16 +71,20 @@ If you do want to install Git from source, you need to have the following librar
6871
For example, if you're on a system that has yum (such as Fedora) or apt-get (such as a Debian based system), you can use one of these commands to install the minimal dependencies for compiling and installing the Git binaries:
6972

7073
[source,console]
71-
$ sudo yum install curl-devel expat-devel gettext-devel \
72-
openssl-devel zlib-devel
73-
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
74-
libz-dev libssl-dev
74+
----
75+
$ sudo yum install curl-devel expat-devel gettext-devel \
76+
openssl-devel zlib-devel
77+
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
78+
libz-dev libssl-dev
79+
----
7580

7681
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required:
7782

7883
[source,console]
79-
$ sudo yum install asciidoc xmlto docbook2x
80-
$ sudo apt-get install asciidoc xmlto docbook2x
84+
----
85+
$ sudo yum install asciidoc xmlto docbook2x
86+
$ sudo apt-get install asciidoc xmlto docbook2x
87+
----
8188

8289
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
8390
You can get it via the Kernel.org site, at https://www.kernel.org/pub/software/scm/git[], or the mirror on the GitHub web site, at https://github.com/git/git/releases[].
@@ -86,14 +93,18 @@ It's generally a little clearer what the latest version is on the GitHub page, b
8693
Then, compile and install:
8794

8895
[source,console]
89-
$ tar -zxf git-2.0.0.tar.gz
90-
$ cd git-2.0.0
91-
$ make configure
92-
$ ./configure --prefix=/usr
93-
$ make all doc info
94-
$ sudo make install install-doc install-html install-info
96+
----
97+
$ tar -zxf git-2.0.0.tar.gz
98+
$ cd git-2.0.0
99+
$ make configure
100+
$ ./configure --prefix=/usr
101+
$ make all doc info
102+
$ sudo make install install-doc install-html install-info
103+
----
95104

96105
After this is done, you can also get Git via Git itself for updates:
97106

98107
[source,console]
99-
$ git clone git://git.kernel.org/pub/scm/git/git.git
108+
----
109+
$ git clone git://git.kernel.org/pub/scm/git/git.git
110+
----

book/02-git-basics/sections/viewing-history.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To get the project, run
99

1010
[source,console]
1111
----
12-
git clone https://github.com/schacon/simplegit-progit
12+
$ git clone https://github.com/schacon/simplegit-progit
1313
----
1414

1515
When you run `git log` in this project, you should get output that looks something like this:(((git commands, log)))

book/04-git-server/sections/git-daemon.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Basically, you need to run this command in a daemonized manner:(((git commands,
1313

1414
[source,console]
1515
----
16-
git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
16+
$ git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
1717
----
1818

1919
`--reuseaddr` allows the server to restart without waiting for old connections to time out, the `--base-path` option allows people to clone projects without specifying the entire path, and the path at the end tells the Git daemon where to look for repositories to export.
@@ -50,7 +50,7 @@ To get it running without having to reboot, you can run this:
5050

5151
[source,console]
5252
----
53-
initctl start local-git-daemon
53+
$ initctl start local-git-daemon
5454
----
5555

5656
On other systems, you may want to use `xinetd`, a script in your `sysvinit` system, or something else – as long as you get that command daemonized and watched somehow.

book/07-git-tools/sections/credentials.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ git config --global credential.helper cache
3131
----
3232

3333
Some of these helpers have options.
34-
The ``store'' helper can take a `--file <path>` argument, which customizes where the plaintext file is saved (the default is `~/.git-credentials`).
34+
The ``store'' helper can take a `--file <path>` argument, which customizes where the plain-text file is saved (the default is `~/.git-credentials`).
3535
The ``cache'' helper accepts the `--timeout <seconds>` option, which changes the amount of time its daemon is kept running (the default is ``900'', or 15 minutes).
3636
Here's an example of how you'd configure the ``store'' helper with a custom file name:
3737

0 commit comments

Comments
 (0)