如何允许在digitalocean服务器上从github源安装gem

如何允许在digitalocean服务器上从github源安装gem,github,rubygems,bundler,ruby-on-rails-5,Github,Rubygems,Bundler,Ruby On Rails 5,您好,谢谢您的阅读 如何打开并允许github gem source在digitalocean服务器上运行 正在重试git克隆'git://github.com/tcocca/acts_as_follower.git' “/home/DIR/.rvm/gems/ruby-2.3.3/cache/bundler/git/acts_as_follower-325dbadb5c64b190d66abe4d3ec636f4d371606” --裸机--没有硬链接--由于错误(2/4)而处于安静状态:Bu

您好,谢谢您的阅读

如何打开并允许github gem source在digitalocean服务器上运行

正在重试git克隆'git://github.com/tcocca/acts_as_follower.git' “/home/DIR/.rvm/gems/ruby-2.3.3/cache/bundler/git/acts_as_follower-325dbadb5c64b190d66abe4d3ec636f4d371606” --裸机--没有硬链接--由于错误(2/4)而处于安静状态:Bundler::Source::Git::GitCommandError Git error:command
Git clone
'git://github.com/tcocca/acts_as_follower.git'
“/home/DIR/.rvm/gems/ruby-2.3.3/cache/bundler/git/acts_as_follower-325dbadb5c64b190d66abe4d3ec636f4d371606”
--裸--无硬链接--目录/Dir中的quiet
失败。致命:无法连接到github.com:github.com[0:IP]:errno=Connection 拒绝github.com[1:IP]:errno=连接被拒绝

这方面的任何帮助都会很棒


提前感谢。

解决方案是改变全球环境

git config——全局url。git://github.com/


溶液添加到下面。