I can't get this to work.
I have cloned a repository that has a dummy file (named src): /path/src
.
On Windows I have created a symbolic link: mklink -d /path/src /otherplace/src
(but I of course had to delete the dummy src file first).
In both my .gitignore
and .git/info/exclude
I have
/path/src/
/path/src
path/src/
path/src
And I have tried
git ls-files -s | gawk '/120000/{print $4}'
git update-index path/src/ --assume-unchanged
but I still get:
error: readlink("path/src"): Function not implemented
error: unable to index file path/src
fatal: updating files failed
I have tried all these other suggestions. And even this doesn't work.
Any ideas?
git config core.symlinks true
instead ofgit config core.symlinks false
got rid of the Function not implemented error for me. Consequently, the symlinks I created using mklink in Windows were pushed without error, but when cloning the project again, the symlinks become text files that says where the original files are located instead of working as a real symlink. – Siblegit config core.symlinks true
works for me! – Beadruby