I'm currently setting up my new system (OS X) and trying to link
/Library/WebServer/Documents/, so that I can access all my git repositories via 127.0.0.1. However, that doesn't work as expected.
While I was able to symlink other directories:
ln -s / ~/Desktop/root ln -s ~ ~/Desktop/home
it just doesn't want to work with my
sudo ln -s ~/Git /Library/WebServer/Documents/Git ln -s ~/Git ~/Desktop/Git
The link is created, but it's telling me
The operation can’t be completed because the original item for “Git” can’t be found. Wherever I place it, the behaviour is always the same. It also seems to be the same with other directories in my home directory (except for the home directory itself).
ls -l ~/Desktop lrwxr-xr-x 1 user staff 1 Jul 8 08:31 : -> / lrwxr-xr-x 1 user staff 4 Jul 9 12:50 Git -> /Users/user/Git lrwxr-xr-x 1 user staff 29 Jul 8 08:38 wwwroot -> /Library/WebServer/Documents/ lrwxr-xr-x 1 user staff 19 Jul 8 08:31 ~ -> /Users/user