Use of symbolic link in Windows 10

138 views
Skip to first unread message

Roland Bengtsson

unread,
Aug 19, 2023, 4:16:32 AM8/19/23
to git-for-windows
Hi I tried to use symbolic links but it makes me confused.

From commandline
C:\Attracs\Attracs-External\deploy\res>

mklink WayBill.fr3 C:\Attracs\Attracs-Common\deploy\res\WayBill.fr3

symbolic link created for WayBill.fr3 <<===>> C:\Attracs\Attracs-Common\deploy\res\WayBill.fr3

So this works fine. The link is shown as type .symlink in Explorer.

To ensure it looks the same when git recreate it I rename the link to _WayBill.fr3
I use SmartGit client and it is shown as missing.
When I pull the file is created again with name WayBill.fr3.

But Explorer show it with type fr3 ?

Filecontents in _WayBill.fr3
C:\Attracs\Attracs-Common\deploy\res\WayBillBatch.fr3

Filecontents in WayBill.fr3
C:/Attracs/Attracs-Common/deploy/res/WayBill.fr3

So slash is not identical as original. What happened here?

Git            2.35.0.windows.1
SmartGit 22.1.7
Windows 10 Pro 22H2

Johannes Schindelin

unread,
Sep 3, 2023, 6:54:00 AM9/3/23
to Roland Bengtsson, git-for-windows
Hi Roland,

can you replicate the issue with (current) Git for Windows, i.e. without
involving SmartGit?

Ciao,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/45af5515-68dd-4f53-a474-1ccdf92daaf4n%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages