void (GitRepository repository, String branch, Collection<String> fileNames) { cd(repository); git(repository, "checkout " + branch); for (String it : fileNames) { touch(it, "branch content"); git(repository, "add " + it); } git(repository, "commit -m untracked_files"); git(repository, "checkout master"); for (String it : fileNames) { touch(it, "master content"); } }