Ser*_*vyi 2 rubygems ruby-overcommit
安装过量.overcommit.yml提交并签名本地文件后,我仍然收到“签名”要求。
$ overcommit --sign
Updating signature for configuration file...
$ git commit
Unable to load configuration from '/Users/sergii/w/profinda_saas/.overcommit.yml': Signature of configuration file has changed!
Run `overcommit --sign` once you've verified the configuration changes.
Run Code Online (Sandbox Code Playgroud)
问题出在不同版本的overcommit宝石上。删除与用于创建.overcommit.yml文件的版本不同的版本。安装正确的版本并重新安装挂钩。
$ gem uninstall overcommit
$ gem install overcommit -v 0.46.0
$ overcommit --install
$ overcommit --sign
Run Code Online (Sandbox Code Playgroud)