# gitForbidden **Repository Path**: lyxfj/gitForbidden ## Basic Information - **Project Name**: gitForbidden - **Description**: git钩子,提交前检查提交文件是否被禁止提交 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-10-24 - **Last Updated**: 2022-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 在`package.json`中添加`gitForbidden`属性即可,例如: ```json { "gitForbidden": ["dbConfig.json"] } ``` 执行git commit时,如果包含`dbConfig.json`,则会提交失败