
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
gatsby-tinacms-git
Advanced tools
A Gatsby/Tina plugin for **editing content/data files stored in git**.
A Gatsby/Tina plugin for editing content/data files stored in git.
yarn add gatsby-plugin-tinacms gatsby-tinacms-git
Include gatsby-plugin-tinacms
and gatsby-tinacms-git
in your config:
gatsby-config.js
module.exports = {
// ...
plugins: [
// ...
{
resolve: 'gatsby-plugin-tinacms',
options: {
plugins: ['gatsby-tinacms-git'],
},
},
],
}
// reference @tinacms/api-git
interface GitServerConfig extends GitRouterConfig {
pathToRepo: string
pathToContent: string
gitRemote?: string
sshKey?: string
}
interface GitRouterConfig {
defaultCommitMessage: string
defaultCommitName: string
defaultCommitEmail: string
pushOnCommit: boolean
}
const DEFAULT_OPTIONS: GitRouterConfig = {
defaultCommitMessage: 'Edited with TinaCMS',
defaultCommitName: 'TinaCMS',
defaultCommitEmail: 'git@tinacms.org',
pushOnCommit: true,
}
Option | Description |
---|---|
pathToRepo | The base-path to the repository where the content is stored in. Default: The repository root. |
pathToContent | The directory to the root of your app within the repository. Default: The repository root. This can be useful for monorepos, when you have multiple sites within one repository. |
defaultCommitMessage | The default commit message. Default: 'Edited with TinaCMS' |
defaultCommitName | The default Git user name. |
defaultCommitEmail | The default Git user email. |
pushOnCommit | Indicates if every commit should also be pushed automatically. Default: true . |
gitRemote | Git SSH remote url for the repository. Default: undefined . |
sshKey | Base64 encoded SSH private key that has access to the repository. This should not be committed to your repository. This value should be undefined or load the key from an environment variable (ie. process.env.SSH_KEY ). Default: undefined . |
Configuring the File Writing Debounce
The
TINA_GIT_DEBOUNCE_MS
environment variable can be used to change the debounce rate for file writing. This value defaults to1000
milliseconds.TINA_GIT_DEBOUNCE_MS=3000 gatsby develop
This is useful when running in your site in cloud editing environment i.e. Gatsby Cloud or Heroku.
FAQs
A Gatsby/Tina plugin for **editing content/data files stored in git**.
The npm package gatsby-tinacms-git receives a total of 12 weekly downloads. As such, gatsby-tinacms-git popularity was classified as not popular.
We found that gatsby-tinacms-git demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.