Thread (3 messages) flat view 3 messages, 3 authors, 2025-12-04

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

From: Torsten Bögershausen <hidden>
Date: 2025-12-04 05:12:23

On Thu, Dec 04, 2025 at 03:59:19AM +0000, Skybuck Flying wrote:

[Skip all the interesting stuff]
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help