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

Re: Copieing git repository to another disk is dangerous ! Especially in combination with remotes set to local repositories !

From
Torsten Bögershausen <tboegi@web.de>
Date
Dec 4, 2025, 05:12 UTC
Message-ID
<20251204051215.GA23486@tb-raspi4>
In-Reply-To
<AM0PR02MB44508B247E4B6EF4F387DA5FB3A6A@AM0PR02MB4450.eurprd02.prod.outlook.com>
On Thu, Dec 04, 2025 at 03:59:19AM +0000, Skybuck Flying wrote:
[Skip all the interesting stuff]
Show 5 quoted lines
> 
> Which leads to the question:
> 
> Can drive letters be avoided in git remotes ?
> 

I think so. Since a long time Windows supports an UNC path. They start with a double backslash, followed by the server and share:

\\server\share\directory\filename.txt So when you do net use z: \\server\share

you can do git clone //server/share/path-to-repo instead of git clone z:/path-to-repo

(And git replaces '/' with '\' internally.)

I need to admit that this may be not well-known but should work.

Previous: Skybuck FlyingNext: Konstantin Khomoutov
Message 2 of 3 in “Copieing git repository to another disk is dangerous ! Especially in combination with remotes set to local repositories !”
  1. Skybuck FlyingDec 4, 2025
  2. Torsten BögershausenDec 4, 2025
  3. Konstantin KhomoutovDec 4, 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.