Skip to content

Commit ec0c33f

Browse files
committed
fix _git_tools links
1 parent ace07c3 commit ec0c33f

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

book/02-git-basics/sections/undoing.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The `benchmarks.rb` file is modified but once again unstaged.
8282
While `git reset` _can_ be a dangerous command if you call it with `--hard`, in this instance the file in your working directory is not touched. Calling `git reset` without an option is not dangerous - it only touches your staging area.
8383
=====
8484

85-
For now this magic invocation is all you need to know about the `git reset` command. We'll go into much more detail about what `reset` does and how to master it to do really interesting things in <<_git_tools_reset>>.
85+
For now this magic invocation is all you need to know about the `git reset` command. We'll go into much more detail about what `reset` does and how to master it to do really interesting things in <<_reset>>.
8686

8787
==== Unmodifying a Modified File
8888

book/03-git-branching/sections/basic-branching-and-merging.asc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ Hit return to start merge resolution tool (opendiff):
268268

269269
If you want to use a merge tool other than the default (Git chose `opendiff` in this case because the command was run on a Mac), you can see all the supported tools listed at the top after ``one of the following tools.''
270270
Just type the name of the tool you'd rather use.
271-
In <<_git_tools>>, we'll discuss how you can change this default value for your environment (Git gave us a helpful hint).
272271

273272
If you need more advanced tools for resolving tricky merge conflicts, we cover more on merging in <<_advanced_merging>>.
274273

book/03-git-branching/sections/remote-branches.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ It will simply get the data for you and let you merge it yourself.
185185
However, there is a command called `git pull` which is essentially a `git fetch` immediately followed by a `git merge` in most cases.
186186
If you have a tracking branch set up as demonstrated in the last section, either by explicitly setting it or by having it created for you by the `clone` or `checkout` commands, `git pull` will look up what server and branch your current branch is tracking, fetch from that server and then try to merge in that remote branch.
187187

188-
There are other uses of the `pull` command that we'll address in [[_git_tools]], but generally it's better to simply use the `fetch` and `merge` commands explicitly as the magic of `git pull` can often be confusing.
188+
Generally it's better to simply use the `fetch` and `merge` commands explicitly as the magic of `git pull` can often be confusing.
189189

190190
==== Deleting Remote Branches
191191

book/05-distributed-git/sections/contributing.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Even if you don't commit during the weekend, use the staging area on Monday to s
5050
If some of the changes modify the same file, try to use `git add --patch` to partially stage files (covered in detail in <<_staging_patches>>).
5151
The project snapshot at the tip of the branch is identical whether you do one commit or five, as long as all the changes are added at some point, so try to make things easier on your fellow developers when they have to review your changes.
5252
This approach also makes it easier to pull out or revert one of the changesets if you need to later.
53-
<<_git_tools>> describes a number of useful Git tricks for rewriting history and interactively staging files – use these tools to help craft a clean and understandable history.
53+
<<_rewriting_history>> describes a number of useful Git tricks for rewriting history and interactively staging files – use these tools to help craft a clean and understandable history.
5454

5555
The last thing to keep in mind is the commit message.
5656
Getting in the habit of creating quality commit messages makes using and collaborating with Git a lot easier.
@@ -493,7 +493,7 @@ $ git commit
493493
$ git commit
494494
-----
495495

496-
You may want to use `rebase -i` to squash your work down to a single commit, or rearrange the work in the commits to make the patch easier for the maintainer to review – see <<_git_tools>> for more information about interactive rebasing.
496+
You may want to use `rebase -i` to squash your work down to a single commit, or rearrange the work in the commits to make the patch easier for the maintainer to review – see <<_rewriting_history>> for more information about interactive rebasing.
497497

498498
When your branch work is finished and you're ready to contribute it back to the maintainers, go to the original project page and click the ``Fork'' button, creating your own writable fork of the project.
499499
You then need to add in this new repository URL as a second remote, in this case named `myfork`:

book/06-github/1-github.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ So while it's not a direct part of the Git open source project, there's a good c
88
This chapter is about using GitHub effectively.
99
We'll cover signing up for and managing an account, creating and using Git repositories, common workflows, interacting with projects, lots of little tips to make your life easier, and GitHub's programmatic interface.
1010

11-
If you are not interested in using GitHub to host your own projects or to collaborate with other projects that are hosted on GitHub, you can safely skip to the <<_git_tools, next chapter>>.
11+
If you are not interested in using GitHub to host your own projects or to collaborate with other projects that are hosted on GitHub, you can safely skip to <<_git_tools>>.
1212

1313
include::sections/setting-up-account.asc[]
1414

book/07-git-tools/1-git-tools.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[[_git_tools]]
12
== Git Tools
23

34
By now, you’ve learned most of the day-to-day commands and workflows that you need to manage or maintain a Git repository for your source code control.

book/07-git-tools/sections/rewriting-history.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[[_rewriting_history]]
12
=== Rewriting History
23

34
Many times, when working with Git, you may want to revise your commit history for some reason.

book/11-git-internals/sections/maintenance.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ da3f30d019005479c99eb4c3406225613985a1db oops - removed large tarball
275275
----
276276

277277
You must rewrite all the commits downstream from `6df76` to fully remove this file from your Git history.
278-
To do so, you use `filter-branch`, which you used in <<_git_tools>>:
278+
To do so, you use `filter-branch`, which you used in <<_rewriting_history>>:
279279

280280
[source,shell]
281281
----
@@ -286,7 +286,7 @@ Rewrite da3f30d019005479c99eb4c3406225613985a1db (2/2)
286286
Ref 'refs/heads/master' was rewritten
287287
----
288288

289-
The `--index-filter` option is similar to the `--tree-filter` option used in <<_git_tools>>, except that instead of passing a command that modifies files checked out on disk, you’re modifying your staging area or index each time.
289+
The `--index-filter` option is similar to the `--tree-filter` option used in <<_rewriting_history>>, except that instead of passing a command that modifies files checked out on disk, you’re modifying your staging area or index each time.
290290
Rather than remove a specific file with something like `rm file`, you have to remove it with `git rm --cached` – you must remove it from the index, not from disk.
291291
The reason to do it this way is speed – because Git doesn’t have to check out each revision to disk before running your filter, the process can be much, much faster.
292292
You can accomplish the same task with `--tree-filter` if you want.

0 commit comments

Comments
 (0)