diff --git a/book/10-git-internals/sections/refspec.asc b/book/10-git-internals/sections/refspec.asc index f8157ce56..7be361371 100644 --- a/book/10-git-internals/sections/refspec.asc +++ b/book/10-git-internals/sections/refspec.asc @@ -18,8 +18,8 @@ Running the command above adds a section to your repository's `.git/config` file fetch = +refs/heads/*:refs/remotes/origin/* ---- -The format of the refspec is, first, an optional `+`, followed by `:`, where `` is the pattern for references on the remote side and `` is where those references will be tracked locally. -The `+` tells Git to update the reference even if it isn't a fast-forward. +The format of the refspec is, first, an optional `{plus}`, followed by `:`, where `` is the pattern for references on the remote side and `` is where those references will be tracked locally. +The `{plus}` tells Git to update the reference even if it isn't a fast-forward. 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. So, if there is a `master` branch on the server, you can access the log of that branch locally via any of the following: