Skip to content

Commit 7ac82c5

Browse files
committed
Merge pull request #306 from Thannoy/master-review/basic-items
Small set of minor fixes (mainly typo)
2 parents d1e1579 + 2b56f11 commit 7ac82c5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

book/02-git-basics/sections/recording-changes.asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ The rules for the patterns you can put in the `.gitignore` file are as follows:
205205

206206
* Blank lines or lines starting with `#` are ignored.
207207
* Standard glob patterns work.
208+
* You can start patterns with a forward slash (`/`) to avoid recursivity.
208209
* You can end patterns with a forward slash (`/`) to specify a directory.
209210
* You can negate a pattern by starting it with an exclamation point (`!`).
210211

@@ -222,7 +223,7 @@ Here is another example .gitignore file:
222223
# but do track lib.a, even though you're ignoring .a files above
223224
!lib.a
224225
225-
# only ignore the root TODO file, not subdir/TODO
226+
# only ignore the TODO file in the current directory, not subdir/TODO
226227
/TODO
227228
228229
# ignore all files in the build/ directory

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ initctl start local-git-daemon
5353

5454
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.
5555

56-
Next, you have to tell Git which repositories to allow unauthenticated Git server-based access to. You can do this in each repository by creating a file name `git-daemon-export-ok`.
56+
Next, you have to tell Git which repositories to allow unauthenticated Git server-based access to. You can do this in each repository by creating a file named `git-daemon-export-ok`.
5757

5858
[source,console]
5959
----

book/04-git-server/sections/smart-http.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Next we need to add some things to the Apache configuration to run the `git-http
2222
----
2323
SetEnv GIT_PROJECT_ROOT /opt/git
2424
SetEnv GIT_HTTP_EXPORT_ALL
25-
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
25+
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
2626
----
2727

2828
If you leave out `GIT_HTTP_EXPORT_ALL` environment variable, then Git will only serve to unauthenticated clients the repositories with the `git-daemon-export-ok` file in them, just like the Git daemon did.

book/07-git-tools/sections/advanced-merging.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $ git status -sb
115115

116116
The `git merge --abort` option tries to revert back to your state before you ran the merge. The only cases where it may not be able to do this perfectly would be if you had unstashed, uncommitted changes in your working directory when you ran it, otherwise it should work fine.
117117

118-
If for some reason you find yourself in a horrible state and just want to start over, you can also run `git reset --hard HEAD` or wherever you want to get back to. Remember again that this will blow away your working directory, so make sure you don't want any changes there.
118+
If for some reason you just want to start over, you can also run `git reset --hard HEAD`, and your repository will be back to the last committed state. Remember that any uncommitted work will be lost, so make sure you don't want any of your changes.
119119

120120
===== Ignoring Whitespace
121121

0 commit comments

Comments
 (0)