I have this situation, a real folder called "git" is symlinked to .githooks:
Is there a way to make the symlinked files non-writable, without affecting the original files? I don't want users to accidentally modify the source in the git folder form the .githooks folder.
I tried:
chmod -R .githooks/* 555
and
chmod -R .githooks/* 544
and I got this both times:
chmod: Invalid file mode: .githooks/pre-commit