我想知道是否有一种简单的方法来扩展Git命令.
所以我可以创建如下命令:
git my-custom-made-extension --my-options <my-other-arguments>
Run Code Online (Sandbox Code Playgroud)
在一个完美的世界里,我可以用它喜欢的任何语言来完成它,并且我能够相当容易地将我定制的扩展添加到任何开发环境中.
比方说,像Vim 插件的支持?
我安装了Ruby 2.0.0并且编译顺利但是当我使用bundle install它时给了我这个错误:
Bundler is not compatible with Ruby 2.0 or Rubygems 2.0. Please upgrade to Bundler 1.3 or higher.
如果我尝试更新它gem update bundler:
$ gem update bundler Updating installed gems Nothing to update
当我尝试更新RubyGems时:
$ gem update --system Latest version currently installed. Aborting.
我错过了什么?
我正在使用Ruby 2.0.0-p0和RVM 1.18.14.