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

Re: Migrating Repository without Network

From
KKKonstantin Khomoutov <kostix@bswap.ru>
Date
Oct 22, 2025, 09:14 UTC
Message-ID
<yfg4ow3ndckqr6zvrbvldbynv2jgaf5ip76phusdtiwelnz4e2@5e5hct2uujo5>
In-Reply-To
<6tygbwc6ifpuo3xylsmsveufqyroazy35u4lyblnvuls3l7n3u@d4ail3s6vtoa>
On Wed, Oct 22, 2025 at 12:04:15PM +0300, Konstantin Khomoutov wrote:
[...]
Show 6 quoted lines
> In either case, it will be possible to fetch all the data from the repo
> saved on the flash drive: it might be not exactly obvious but all Git
> commands which fetch data - such as "clone", "fetch" etc - do understand
> "plain" pathnames such as /the/path/to/the/repo and URLs with the special
> scheme "file://" - such as file:///the/path/to/the/repo, allowing them to
> work with on-disk repos available locally such as on a mounted flash drive.

...it should be noted, though, that "normal" and "bare" repository have different schemes of storing branches available in them, and it might affect the approach you will need to employ to fetch really *all* the data to form a new repo.

It's hardly possible to dive further in this topic because we have next to zero knowledge about your setup - including whether that repo is bare and is accessed from the outside, or normal and merely shared between the users physically logged into the server and so on. I mean, it may so happen that all you will need to do is to copy the repo to a flash drive and then copy it again to the new server, possibly fix filesystem permissions on it so that they match the ones the old repo has, and call it a day. In case you will need more advanced help, you'll need to provide more details on your situation.

Previous: Konstantin KhomoutovNext: Dennis Putnam
Message 5 of 6 in “Migrating Repository without Network”
  1. Dennis PutnamOct 21, 2025
  2. D. Ben KnobleOct 21, 2025
  3. Junio C HamanoOct 21, 2025
  4. Konstantin KhomoutovOct 22, 2025
  5. Konstantin KhomoutovOct 22, 2025
  6. Dennis PutnamOct 22, 2025

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.