@staticmethod
    def successfully_commit_files(file_names,
                                  commit="initial_commit",
                                  cwd=TEMP_DIR):
        try:
            shell_out(["git", "add"] + file_names, cwd=cwd)
            shell_out(["git", "commit", "-m", commit], cwd=cwd)
            with from_dir(cwd):
                return Git().current_branch()
        except (__HOLE__, CalledProcessError):
            return False
dataset/ETHPy150Open hayd/pep8radius/tests/util_vcs.py/MixinGit.successfully_commit_files