void (GitRepository repository, String name, String file, String content, boolean returnToMaster) { cd(repository); git(repository, "checkout -b " + name); touch(file, content); git(repository, "add " + file); git(repository, "commit -m branch_content"); if (returnToMaster) { git(repository, "checkout master"); } }