Skip to content

Commit a285eee

Browse files
committed
Make password.txt example consistent
1 parent f746e63 commit a285eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ This occurs fairly commonly.
273273
Someone accidentally commits a huge binary file with a thoughtless `git add .`, and you want to remove it everywhere.
274274
Perhaps you accidentally committed a file that contained a password, and you want to make your project open source.
275275
`filter-branch` is the tool you probably want to use to scrub your entire history.
276-
To remove a file named passwords.txt from your entire history, you can use the `--tree-filter` option to `filter-branch`:
276+
To remove a file named `passwords.txt` from your entire history, you can use the `--tree-filter` option to `filter-branch`:
277277

278278
[source,console]
279279
----
@@ -283,7 +283,7 @@ Ref 'refs/heads/master' was rewritten
283283
----
284284

285285
The `--tree-filter` option runs the specified command after each checkout of the project and then recommits the results.
286-
In this case, you remove a file called passwords.txt from every snapshot, whether it exists or not.
286+
In this case, you remove a file called `passwords.txt` from every snapshot, whether it exists or not.
287287
If you want to remove all accidentally committed editor backup files, you can run something like `git filter-branch --tree-filter 'rm -f *~' HEAD`.
288288

289289
You’ll be able to watch Git rewriting trees and commits and then move the branch pointer at the end.

0 commit comments

Comments
 (0)