def _create_config(self, rel_path, content, message):
        if phlgit_diffindex.is_index_dirty(self._repo):
            raise Error("git index has staged changes")

        path = self._make_abspath(rel_path)

        if os.path.exists(path):
            raise Error("config already exists")

        phlsys_fs.write_text_file(path, content)
        self._repo('add', rel_path)
        phlgit_commit.index(self._repo, message)
Create and commit a new config file.
dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_fs.py/Accessor._create_config