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

Re: how to make "full" copy of a repo

From
Duy Nguyen <pclouds@gmail.com>
Date
Mar 30, 2015, 15:22 UTC
Message-ID
<CACsJy8AN6X3oh2=yLn-szEApEMC+uQMmO6qBYbPrVNK1_d5tEQ@mail.gmail.com>
In-Reply-To
<20150328143152.GB9387@vps892.directvps.nl>
On Sat, Mar 28, 2015 at 9:31 PM, Kevin D <me@ikke.info> wrote:
Show 11 quoted lines
> Git clone is never going to get you a copy where nothing is lost.
>
> What you are losing on clone is:
>
> * config settings (this includes the configures remotes)
> * hooks
> * reflog (history of refs, though, by default disabled for bare
>   repositories)
> * Stashes, because the reference to them is stored in the reflog
> * unreferenced objects (though you said those are not a requirement, it
>   is still something that is lost)

This is true. But I wonder if we should (and can) support --super-mirror option (disabled by default), where reflog and stashes are kept, for backup purposes. We might keep unreferenced objects as well if it's not hard to do.

-- 
Duy
Previous: Kevin DNext: Junio C Hamano
Message 5 of 9 in “how to make "full" copy of a repo”
  1. Christoph Anton MittererMar 28, 2015
  2. Kevin DMar 28, 2015
  3. Christoph Anton MittererMar 29, 2015
  4. Kevin DMar 29, 2015
  5. Duy NguyenMar 30, 2015
  6. Junio C HamanoMar 30, 2015
  7. Torsten BögershausenMar 28, 2015
  8. Ævar Arnfjörð BjarmasonMar 28, 2015
  9. Christoph Anton MittererMar 29, 2015

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.