git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] doc: remote: say that it only affects the local repository

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 29, 2026, 16:28 UTC
Message-ID
<xmqqld8khviu.fsf@gitster.g>
In-Reply-To
<20260929120010.840402-1-matthias.goergens@gmail.com>
Matthias Goergens <matthias.goergens@gmail.com> writes:
Show 13 quoted lines
> diff --git a/Documentation/git-remote.adoc b/Documentation/git-remote.adoc
> index eaae30aa88..315100409d 100644
> --- a/Documentation/git-remote.adoc
> +++ b/Documentation/git-remote.adoc
> @@ -28,6 +28,11 @@ DESCRIPTION
>  
>  Manage the set of repositories ("remotes") whose branches you track.
>  
> +`git remote` changes only the local repository, i.e. its configuration
> +and its refs, and never modifies a remote repository.  Some subcommands,
> +such as `show`, `prune`, `update` and `set-head --auto`, contact a
> +remote repository to read from it.
> +

I would not have minded having additional text in descriptions for individual operations like 'set-head' and 'prune' that might be misread to work on the other side, but the description above is very clear and we may not need anything extra.

I also like the second sentence, mentioning that some commands read from the remote. It implicitly stresses that nobody writes to the remote.

Thanks.
Previous: Matthias Goergens
Message 4 of 4 in “doc: clarify that set-head does not change the remote's HEAD”
  1. doc: clarify that set-head does not change the remote's HEADMatthias Goergens, Sep 27, 2026
  2. Junio C HamanoSep 28, 2026
  3. doc: remote: say that it only affects the local repositoryMatthias Goergens, Sep 29, 2026
  4. Junio C HamanoSep 29, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.