The ‘.git/hooks/pre-push‘ hook was ignored because it‘s not set as executable.
Mac上使用Git提交代码提示:
hint: The '.git/hooks/prepare-commit-msg' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
hint: The '.git/hooks/commit-msg' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
hint: The '.git/hooks/pre-push' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
解决方案:
执行:
chmod 777 .git/hooks/commit-msg
chmod 777 .git/hooks/pre-push
chmod 777 .git/hooks/prepare-commit-msg
原文地址:https://blog.csdn.net/qq_35605213/article/details/144346988
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!