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

Re: What's the best way to push/fetch replace refs?

From
STSlawomir Testowy <slawomir.testowy@gmail.com>
Date
Jan 2, 2012, 06:16 UTC
Message-ID
<CAA61mJjCKJYAifD3DihAg+pH4Q0Z9y26n3P5KBBy09n-wK9LXg@mail.gmail.com>
In-Reply-To
<CAP8UFD3KSjdZz1q+QYsH4JpRkiavtTbT1WqQSdxqCaxc24j=Rg@mail.gmail.com>
2011/12/30 Christian Couder <christian.couder@gmail.com>:
Show 13 quoted lines
> On Fri, Dec 30, 2011 at 12:59 PM, Slawomir Testowy
> <slawomir.testowy@gmail.com> wrote:
>>
>> # I also added "fetch = +refs/replace/*:refs/replace/*" to [remote
>> "origin"] in "b" and this also seems to work.
>
> Yeah, the simplest is probably to just add "fetch =
> +refs/replace/*:refs/replace/*" to the remote(s) you want to get the
> replace refs from, and "push = +refs/replace/*:refs/replace/*" to the
> remote(s) you want to push the replace refs to.
>
> Regards,
> Christian.

Thanks Christian, I thought maybe there is some magic "git clone --get-also-replace-refs" or something. I'm asking because I'm about to tell people how to clone my repository and some of them don't know Git at all so I wanted to find out the simplest/best way to fetch replace refs.

Thanks.
Previous: Christian Couder
Message 3 of 3 in “What's the best way to push/fetch replace refs?”
  1. Slawomir TestowyDec 30, 2011
  2. Christian CouderDec 30, 2011
  3. Slawomir TestowyJan 2, 2012

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.