tinacms/tinacms
public

Tinacms

A fully open-source headless CMS that supports Markdown and Visual Editing

rss

Method on the deprecated GitFile class (PR #5715). Performs a commit through the legacy GitClient REST endpoint; content commits now flow through the TinaCMS GraphQL mutation pipeline.

411d until removal

deprecated June 9, 2025removal June 9, 2027
/**
 * @deprecated
 */
commit = () => {
  return this.git.commit!({
    files: [this.relativePath],
  }).then((response: Response) =>
    this.cms.events.dispatch({ type: 'git:commit', response })
  );
};

Submit the form through the TinaCMS client mutation flow.

  • JackDevAUJackDevAUadded packages/tinacms/src/toolkit/git-client/git-file.ts3h ago