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 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);andGit.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).