本文翻译自:Skip Git commit hooks
I'm looking at a git hook which looks for print statements in Python code. 我正在寻找一个git钩子,它在Python代码中查找print语句。 If a print statement is found, it prevents the git commit. 如果找到print语句,则会阻止git commit。
I want to override this hook and I was told that there is a command to do so. 我想覆盖这个钩子,我被告知有一个命令可以这样做。 I haven't been able to find it. 我找不到它。 Any thoughts? 有什么想法吗?
#1楼
参考:https://stackoom.com/question/UL48/跳过Git提交钩子
#2楼
Maybe (from git commit
man page ): 也许(