I wrote my own custom post-merge hook, now I added a "hooks" directory to my main project folder (since git doesn't track changes in .git/hooks), somewhere I read that I can make a symbolic link from hooks to .git/hooks so I don't have to copy the file from one folder to the other every time someone changes it so I tried:
ln -s -f hooks/post-merge .git/hooks/post-merge
But it doesn't seem to work, any ideas why? "ln hooks/post-merge .git/hooks/post-merge" works fine but making a hard link is the same as copyin I guess....
.git/hooks/
that points tohooks/post-merge
gets resolved to.git/hooks/hooks/post-merge
, which does not exist. You wantln -s -f ../../hooks/post-merge .git/hooks/post-merge
. Or make your life easier:ln -s -f ../hooks .git/hooks
. Your problem has nothing to do with git..git/hooks
.