You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A guide on how to create a new branch, switch to it and delete it. #588
It would be useful to have a guide that shows us how to create a new branch, do something with it, and delete it.
I tried both repo.checkoutBranch(name); and Git.Branch.create(repo, name, commit, 0, Git.Signature.now("Gabriel Petrovay", "gabipetrovay@gmail.com|~ ", "")).then(function (branch) { ... }) but no success. The former has no effect and the latter also complains that a callback is missing (which one I have no idea).
it looks like logMessage argument (last arg) in the create is missing. Try adding that (empty string should be fine).
Otherwise, we generally use the gitter channel for support questions. I'm going to close this issue in lieu of support there (unless this ends up being an actual bug, in which case I'll reopen it). I'll also add a line for a guide for this in our wanted guides/examples issue and reference this.
Activity
gabipetrovay commentedon May 21, 2015
This is one of my trials:
then I call:
The answer is:
which is thrown from the
Git.Branch.createline.gabipetrovay commentedon May 21, 2015
The other trial is:
and calling:
nothing happens. The repo remains on the master branch.
I also did not find the equivalent of
-boption in the checkout optionsmaxkorp commentedon May 21, 2015
it looks like logMessage argument (last arg) in the create is missing. Try adding that (empty string should be fine).
Otherwise, we generally use the gitter channel for support questions. I'm going to close this issue in lieu of support there (unless this ends up being an actual bug, in which case I'll reopen it). I'll also add a line for a guide for this in our wanted guides/examples issue and reference this.