git_sync
Perform Git version control operations on your Obsidian vault: commit changes, pull remote updates, push backups, and run full sync with one action.
Instructions
Git version control for your vault. Actions: 'status' (show changes), 'commit' (stage all + commit), 'pull' (fetch remote changes), 'push' (push to remote), 'sync' (pull+commit+push in one operation), 'log' (commit history), 'diff' (show changes), 'init' (initialize git repo + .gitignore), 'remote_add' (add remote), 'remote_list' (list remotes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path for 'diff' action. If omitted, shows all changes. | |
| limit | No | Number of commits to show for 'log' action. Default: 10. | |
| action | Yes | Git action to perform. 'sync' does pull+commit+push in one operation. 'init' initializes a new git repo with a sensible .gitignore. | |
| message | No | Commit message (for 'commit' and 'sync' actions). Auto-generated if not provided. | |
| remote_url | No | Remote URL (for 'remote_add'). e.g. 'git@github.com:user/vault.git' | |
| remote_name | No | Remote name (for 'remote_add'). Defaults to 'origin'. |