1

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.

Phrogz
  • 296,393
  • 112
  • 651
  • 745
Ilya Sterin
  • 697
  • 1
  • 5
  • 6

1 Answers1

1

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.

Phrogz
  • 296,393
  • 112
  • 651
  • 745