使用overcommit和Github Desktop时出错

Chr*_*ris 6 ruby github rvm

我在我的项目中使用overcommit gem(https://github.com/brigade/overcommit),当我使用Github Desktop for osx时,我收到以下错误:

此存储库包含由Overcommit安装的挂钩,但未 overcommit安装gem.安装它gem install overcommit.(1)

宝石已安装,它在终端工作.我想这是因为我使用rvm并且Github Desktop不知道rvm.有谁知道如何解决这个问题?

Chr*_*ris 5

好吧终于搞定了!将@michelegera的答案与@rewritten的评论结合起来

步骤1:

sudo su -
gem install bundler
gem install overcommit
gem install rubocop
Run Code Online (Sandbox Code Playgroud)

第2步:添加command: ['bundle', 'exec', 'rubocop'].overcommit.yml

谢谢您的帮助!