Skip to content

Commit 27203b6

Browse files
committed
Merge pull request #398 from crd/fix-console-blocks-in-07-git-tools
Fix console blocks in 07-git-tools
2 parents e65f804 + f11c3b6 commit 27203b6

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ password=s3cre7
139139

140140
Here's what the `~/git.store` file looks like:
141141

142-
[source]
142+
[source,ini]
143143
----
144144
https://bob:s3cre7@mygithost
145145
----

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ git config --global rerere.enabled true
2525
You can also turn it on by creating the `.git/rr-cache` directory in a specific repository, but the config setting is clearer and it can be done globally.
2626

2727
Now let's see a simple example, similar to our previous one.
28-
Let's say we have a file that looks like this:
28+
Let's say we have a file named `hello.rb` that looks like this:
2929

30-
[source,console]
30+
[source,ruby]
3131
----
3232
#! /usr/bin/env ruby
3333
@@ -177,9 +177,8 @@ Patch failed at 0001 i18n one word
177177
Now, we got the same merge conflict like we expected, but take a look at the `Resolved FILE using previous resolution` line.
178178
If we look at the file, we'll see that it's already been resolved, there are no merge conflict markers in it.
179179

180-
[source,console]
180+
[source,ruby]
181181
----
182-
$ cat hello.rb
183182
#! /usr/bin/env ruby
184183
185184
def hello

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ image::images/reset-squash-r3.png[]
259259
Now you can see that your reachable history, the history you would push, now looks like you had one commit with `file-a.txt` v1, then a second that both modified `file-a.txt` to v3 and added `file-b.txt`.
260260
The commit with the v2 version of the file is no longer in the history.
261261

262-
263262
==== Check It Out
264263

265264
Finally, you may wonder what the difference between `checkout` and `reset` is.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ pick a5f4a0d added cat-file
153153

154154
to this:
155155

156-
157156
[source,console]
158157
----
159158
pick 310154e updated README formatting and added blame

book/07-git-tools/sections/stashing-cleaning.asc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ Stash this hunk [y,n,q,a,d,/,e,?]? y
182182
Saved working directory and index state WIP on master: 1b65b17 added the index file
183183
----
184184

185-
186185
==== Creating a Branch from a Stash
187186

188187
If you stash some work, leave it there for a while, and continue on the branch from which you stashed the work, you may have a problem reapplying the work.

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ Changes to be committed:
5757
First you should notice the new `.gitmodules` file.
5858
This is a configuration file that stores the mapping between the project’s URL and the local subdirectory you’ve pulled it into:
5959

60-
[source,console]
60+
[source,ini]
6161
----
62-
$ cat .gitmodules
6362
[submodule "DbConnector"]
6463
path = DbConnector
6564
url = https://github.com/chaconinc/DbConnector
@@ -689,7 +688,6 @@ $ git commit -am 'Fast forwarded to a common submodule child'
689688

690689
This accomplishes the same thing, but at least this way you can verify that it works and you have the code in your submodule directory when you're done.
691690

692-
693691
==== Submodule Tips
694692

695693
There are a few things you can do to make working with submodules a little easier.

0 commit comments

Comments
 (0)