Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近开始研究一个使用 git 进行存储和 ruby 作为前端的项目。我的脚本的第一个版本使用了 ruby-git,虽然很简单,但还可以。当我需要对我的提交和日志进行更具体的工作时,建议我转向坚韧不拔。但是,我在早期遇到了障碍——grit 似乎无法克隆远程存储库。我使用 Repository 类找到的所有示例都创建了一个本地存储库,并通过源代码搜索我发现 Grit 的克隆方法是未定义的。是什么赋予了?
这是我的第一个 StackOverflow 问题,因此在此先感谢您的帮助。
由于 Git 结构良好,Grit 使用缺少的方法 (Grit::Git#method_missing) 来“系统地”执行 Git 命令。
有关应该对您有所帮助的示例,请参见下面的链接。
https://gist.github.com/731502