You can't use mklink
from Bash on Windows because it's a Batch built-in. The version of ln
that comes with Git Bash is really broken.
Enter makelink. It makes symlinks.
You need a recent build of Rust.
sh
cargo install makelink
makelink <link name> <link target>
Example:
sh
echo "hi" > foo.txt
makelink bar.txt foo.txt
cat bar.txt # hi
If you forget the order of the arguments (you will), mklink --help
is small and to-the-point:
```
USAGE:
makelink.exe
...
ARGS:
Where the symlink should be created
makelink is available under the MIT license. See LICENSE.txt for details.