1

有没有办法使用 Grit 在 repo 中创建分支?我似乎无法在文档中找到方法,也无法在网络上找到任何参考。

4

1 回答 1

1

鉴于某些 Grit 已经脱壳,并且Grit#method_missing明确脱壳,看起来您可以这样做:

git.branch({},"branchname")
git.checkout({},"branchname") # If you like

根据需要设置额外的选项

于 2011-04-29T19:37:09.247 回答