The Git Provider is responsible for saving content to git. It is passed as a prop to the createDatabase
function. Out of the box we support a Github Git Provider. If you do not use Github you can make your own.
// database.{ts,js}
//...
export default isLocal ? createLocalDatabase() ? createDatabase({
gitProvider: new SomeGitProvider(),
// ...
})
Where SomeGitProvider
is a class that implements the GitProvider
interface.
Please checkout the Github Git Provider to see how to setup interaction with Github.
Resources
© TinaCMS 2019–2025