Permission denied when creating symbolic links in git
Solution 1
You might be running into a basic incompatibility of ln on windows platforms (in this case within MINGW-MSYS). You can replace ln with a version that "does the right thing" on Windows; have a look at this:
Git Bash Shell fails to create symbolic links
Solution 2
I had this issue on Windows and I did a couple of steps to resolve this :
-
Enabled core.symlinks by modifying git config
git config --edit
Opened Git Bash as an Administrator and executed the git checkout command
This worked for me, hope it helps someone.
marc_s
Updated on June 09, 2022Comments
-
marc_s almost 2 years
there is a similar question, but the difference here is that I am working on Windows. I am running git on Windows (working in git bash tool) and I have successefully cloned my forked repository. Now I need to make symbolic link and it gives me
Permission denied
. I can make new dir for example in.git
folder and I have also setchmod /R 777
for.git
directory, so it seems I have permissions.I tried to run:
rm -rf hooks
and thenln -s ../git_hooks hooks
.