From: Konstantin Khomoutov Date: Wed, 22 Oct 2025 09:14:48 GMT Subject: Re: Migrating Repository without Network Message-ID: In-Reply-To: <6tygbwc6ifpuo3xylsmsveufqyroazy35u4lyblnvuls3l7n3u@d4ail3s6vtoa> On Wed, Oct 22, 2025 at 12:04:15PM +0300, Konstantin Khomoutov wrote: [...] > 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.