Files
intotheeast-com/docs/working/git-sync-notes.md
T

28 lines
819 B
Markdown

# Git Sync Plugin — Setup Notes
## Folders YAML bug
The plugin UI always saves the folders field as a single comma-string:
```yaml
folders:
- 'pages,config,themes'
```
But the plugin code iterates the array expecting separate items. This causes `git status pages,config,themes` to be passed as a single path, so git sees nothing to commit and sync silently does nothing.
**Fix:** Edit `user/config/plugins/git-sync.yaml` directly:
```yaml
folders:
- pages
- config
- themes
```
Never use the Admin UI to change folders — it will rewrite the broken format.
## Files to gitignore
`user/config/plugins/git-sync.yaml` contains an encrypted token and is server-specific. `user/config/security.yaml` contains Grav nonces/salts, also server-specific. Both are in `.gitignore` and must never be committed.