gpt4 book ai didi

ruby - 使用 overcommit 和 Github Desktop 时出错

转载 作者:数据小太阳 更新时间:2023-10-29 07:06:31 25 4
gpt4 key购买 nike

我在我的项目中使用过度使用 gem ( https://github.com/brigade/overcommit ),当我使用 Github Desktop for osx 时,我得到这些错误:

This repository contains hooks installed by Overcommit, but the overcommit gem is not installed. Install it with gem install
overcommit
. (1)

gem 已安装,它可以在终端中运行。我想这是因为我使用 rvm 而 Github Desktop 不知道 rvm。有人知道如何解决这个问题吗?

最佳答案

好的,终于可以使用了!结合@michelegera 的回答和@rewritten 的评论

第一步:

sudo su -
gem install bundler
gem install overcommit
gem install rubocop

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

感谢您的帮助!

关于ruby - 使用 overcommit 和 Github Desktop 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35171349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com