不觸發husky的pre-commit hook?這樣解決

husky的hook在mac上不生效的問題:

hint: The ‘.git/hooks/pre-auto-gc’ hook was ignored because it’s not set as executable.
hint: You can disable this warning with git config advice.ignoredHook false.

設置成executable:
這個文件默認是不可執行的,執行以下操作即可:

chmod 777 <file>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章