Checkout branch and if necessary first create it. Currently used only in gollum-lib‘s tests.
[Validate]