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.