git pre-commit 默認設置

啓用 pre-commit 默認鉤子 複製 .git/hooks/pre-commit.sample 到 .git/hooks/pre-commit 便可。git core.whitespace 配置參數控制默認鉤子在以下狀況時,阻止提交併報錯:web 行尾空格( blank-at-eol ) 行首的 Tab 字符前有空格( space-before-tab ) 文件尾空行( blank-at-e
相關文章
相關標籤/搜索