Ilya Sterin
Ilya Sterin

Reputation: 767

Create a repo using Grit

Is there a way to create a branch in a repo using Grit? I can't seem to find a way in the docs nor is there any reference I can find on the web.

Upvotes: 1

Views: 401

Answers (1)

Phrogz
Phrogz

Reputation: 303441

Given that some of Grit shells out already, and that Grit#method_missing explicitly shells out, it looks like you could do:

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

Set extra options as appropriate.

Upvotes: 1

Related Questions