myRepository.getConfig().setString("remote", "mixed", "fetch",
"+refs/heads/*:refs/heads/*");
myRepository.getConfig().save();
// and push
PushOperationUI pa = new PushOperationUI(myRepository, "push", false);
pa.execute(null);
try {
// delete the stable branch again
RefUpdate op = myRepository.updateRef("refs/heads/stable");
op.setRefLogMessage("branch deleted", //$NON-NLS-1$