作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正尝试将一些示例压缩数据推送到我的存储库以进行测试,但出现错误。我正在使用 Eclipse 来执行此操作。
pre-receive hook declined
File [SomeFile.txt.gz] violates file name pattern
[(\.jar)$|(\.war)$|(\.exe)$|(\.rar)$|(\.bin)$|(\.so)$|(\.gz)$].
我正在尝试推送一堆压缩文件。我确实拥有该存储库的写入权限,并且我会定期提交。
最佳答案
这可能与 christiangalsterer/stash-filehooks-plugin
有关,一个 Atlassian Bitbucket Server 插件,用于检查各种文件属性,如大小、名称。
查看其 FileNameHook.java
.
您可以在 Settings -> Hooks -> File Name Hook
中要求更改该模式
关于eclipse - 如何将 .txt.gz 文件推送到 git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43383241/
我是一名优秀的程序员,十分优秀!