Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 使用clang格式时,样式参数无效_Git_Githooks_Clang Format - Fatal编程技术网

Git 使用clang格式时,样式参数无效

Git 使用clang格式时,样式参数无效,git,githooks,clang-format,Git,Githooks,Clang Format,我从git安装了预提交 但在配置带有“git config hooks.clangFormatDiffStyle”的样式时会出现错误,在配置该git属性之后,提交时会出现下面的错误消息 -style的值无效 应用格式脚本失败

我从git安装了预提交 但在配置带有“git config hooks.clangFormatDiffStyle”的样式时会出现错误,在配置该git属性之后,提交时会出现下面的错误消息

-style的值无效

应用格式脚本失败