Loving Tina? ⭐️ us on GitHubStar

Docs

Learn

v.Latest
Introduction
Configuring TinaCMS
Querying Content
TinaCloud
Self-Hosting
Advanced

The Git Provider is responsible for saving content to the Git hosting provider. It is set as a property on the configuration passed to the createDatabase function. By default, we support a GitHub Git Provider. If you do not use GitHub, you can make your own.

Adding a Git Provider

// database.{ts,js}
//...
export default isLocal ? createLocalDatabase() ? createDatabase({
gitProvider: new SomeGitProvider(),
// ...
})

Where SomeGitProvider is a class that implements the GitProvider interface.

Please read GitHub Git Provider to see how to set up interaction with GitHub.

Table of Contents