From 65b61d1fc61a6fbbc2042daee539a03ba9082a16 Mon Sep 17 00:00:00 2001 From: Georger Rommel Ferreira de Araujo Date: Fri, 12 Sep 2025 11:22:32 -0300 Subject: [PATCH] Fixes #1913 --- book/10-git-internals/sections/refspec.asc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: