Sus*_*mit 3 git githooks ubuntu-20.04
当我尝试运行时,git commit -m 'message here'出现以下错误。
fatal: cannot exec '.git/hooks/prepare-commit-msg': Permission denied
当我在 ubuntu 上创建一个新分区并在其中克隆存储库后,这个问题就开始了。
您需要使您的文件可执行,下面的代码片段将使文件对所有者、组和世界可执行:
$ chmod +x .git/hooks/prepare-commit-msg
Run Code Online (Sandbox Code Playgroud)