code: def write_to_path(self, path=None):
          
          if path is None:
              path = self.path
          f = GitFile(path, 'wb')
          try:
              self.write_to_file(f)
          finally:
              f.close()
docs: Write configuration to a file on disk.