In Git bash i have run the following:
ln -s "//server/path/Resource/" test
When I check if it's worked:
ls -l
It appears as a folder rather than a symlink. I am using windows and trying to create a symbolic link to a network location. This is probably an easy fix but i just want a shortcut rather than copying a massive folder.
If you have Windows 10, and turn on Developer Mode, it's enough. If you're running a server, you'll need to gpedit, and then set this:
Computer configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment and edit the Create symbolic links
git config --global core.symlinks true
export MSYS=winsymlinks:nativestrict # or add to env/bashrc!
vi /c/Program\ Files/Git/etc/gitconfig
And add this:
[core]
symlinks = true
YMMV, I didn't need this on a newer version, the global config set was enough. Depends.
After that ln -s works as you might expect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With