Skip to content

Commit fabb245

Browse files
authored
[Fix] missing + in pdf, 10-git-internals/refspec
an optional `+` work fine in html but not in pdf. changed to `{plus}` to make sure it renders plus sign in pdf
1 parent ece0b7f commit fabb245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/10-git-internals/sections/refspec.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Running the command above adds a section to your repository's `.git/config` file
1818
fetch = +refs/heads/*:refs/remotes/origin/*
1919
----
2020

21-
The format of the refspec is, first, an optional `+`, followed by `<src>:<dst>`, where `<src>` is the pattern for references on the remote side and `<dst>` is where those references will be tracked locally.
21+
The format of the refspec is, first, an optional `{plus}`, followed by `<src>:<dst>`, where `<src>` is the pattern for references on the remote side and `<dst>` is where those references will be tracked locally.
2222
The `+` tells Git to update the reference even if it isn't a fast-forward.
2323

2424
In the default case that is automatically written by a `git remote add origin` command, Git fetches all the references under `refs/heads/` on the server and writes them to `refs/remotes/origin/` locally.

0 commit comments

Comments
 (0)